git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdf46ea
)
prevent segmentation fault on joining a very long domain name in samba-3.0.32
author
Bhaskar Jain (bhajain)
<bhajain@cisco.com>
Fri, 20 Mar 2009 07:11:30 +0000
(08:11 +0100)
committer
Volker Lendecke
<vl@samba.org>
Fri, 20 Mar 2009 07:11:30 +0000
(08:11 +0100)
For a detailed explanation, see
http://lists.samba.org/archive/samba-technical/2009-March/063626.html
source/libads/cldap.c
patch
|
blob
|
history
diff --git
a/source/libads/cldap.c
b/source/libads/cldap.c
index 3cb98c59c58ff801e737610fc511567fde8c04dc..e01b00bdd8022401d841d60ec33d2e0f25851a9a 100644
(file)
--- a/
source/libads/cldap.c
+++ b/
source/libads/cldap.c
@@
-60,7
+60,7
@@
static unsigned pull_netlogon_string(char *ret, const char *ptr,
ret_len += 2;
followed_ptr = 1;
}
- len = ((ptr[0] & 0x3f) << 8) | ptr[1];
+ len = ((ptr[0] & 0x3f) << 8) |
(uint8)
ptr[1];
ptr = data + len;
} else if (*ptr) {
uint8 len = (uint8)*(ptr++);