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:
568ef20
)
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
Karolin Seeger
<kseeger@samba.org>
Thu, 30 Jul 2009 07:22:13 +0000
(09:22 +0200)
For a detailed explanation, see
http://lists.samba.org/archive/samba-technical/2009-March/063626.html
(cherry picked from commit
a92280537071b5a9a9bc56fbeead14c6874d5a55
)
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++);