git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9405ab
)
fixed a bug in non-terminated unicode strings with clistr_pull()
author
Andrew Tridgell
<tridge@samba.org>
Mon, 26 Feb 2001 05:11:06 +0000
(
05:11
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 26 Feb 2001 05:11:06 +0000
(
05:11
+0000)
(This used to be commit
339bcfd05d3260a123ccf3c06429da6bfe621f74
)
source3/libsmb/clistr.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clistr.c
b/source3/libsmb/clistr.c
index e07b4d5a63d2845841705d046059efc2393b92ec..52137d9f78a2bed99cb10bc6b20a08f3965e0c6f 100644
(file)
--- a/
source3/libsmb/clistr.c
+++ b/
source3/libsmb/clistr.c
@@
-140,7
+140,7
@@
int clistr_pull(struct cli_state *cli, char *dest, const void *src, int dest_len
len = strlen(dest)*2 + 2;
} else {
int i, c;
- if (dest_len
< src_len) src_len =
dest_len;
+ if (dest_len
*2 < src_len) src_len = 2*
dest_len;
for (i=0; i < src_len; i += 2) {
c = SVAL(src, i);
*dest++ = c;