mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-08-20 22:52:33 +02:00
- review fixes for python module.
git-svn-id: file:///svn/unbound/trunk@4969 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -53,7 +53,8 @@
|
||||
i = 0; cnt = 0;
|
||||
while (i < len) {
|
||||
char buf[LDNS_MAX_LABELLEN+1];
|
||||
if(((unsigned int)name[i])+1 <= (unsigned int)sizeof(buf)) {
|
||||
if(((unsigned int)name[i])+1 <= (unsigned int)sizeof(buf) &&
|
||||
i+(int)((unsigned int)name[i]) < len) {
|
||||
memmove(buf, name + i + 1, (unsigned int)name[i]);
|
||||
buf[(unsigned int)name[i]] = 0;
|
||||
PyList_SetItem(list, cnt, PyString_FromString(buf));
|
||||
|
||||
Reference in New Issue
Block a user