git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85706c4
)
tdb: return unpack error on strdup failure
author
David Disseldorp
<ddiss@samba.org>
Fri, 31 Aug 2012 15:41:31 +0000
(17:41 +0200)
committer
David Disseldorp
<ddiss@samba.org>
Fri, 31 Aug 2012 19:05:21 +0000
(21:05 +0200)
Signed-off-by: Lars Müller <lars@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Fri Aug 31 21:05:21 CEST 2012 on sn-devel-104
source3/lib/util_tdb.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_tdb.c
b/source3/lib/util_tdb.c
index c6c6d262772c567260306fb5b2fa07474808e10d..8bfc75f18b65631459b1c45e841056e067281618 100644
(file)
--- a/
source3/lib/util_tdb.c
+++ b/
source3/lib/util_tdb.c
@@
-237,6
+237,9
@@
int tdb_unpack(const uint8 *buf, int bufsize, const char *fmt, ...)
if (bufsize < len)
goto no_space;
*ps = SMB_STRDUP((const char *)buf);
+ if (*ps == NULL) {
+ goto no_space;
+ }
break;
case 'f': /* null-terminated string */
s = va_arg(ap,char *);