s4-dsdb: use safe length limiting in string->integer conversion
commit708ad42b0b1029a813141d1b1d14c782f7ce6393
authorAndrew Tridgell <tridge@samba.org>
Tue, 29 Dec 2009 00:38:17 +0000 (29 11:38 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 1 Jan 2010 21:16:55 +0000 (2 08:16 +1100)
treeb5eeb8bc6daae12808dfb8a4adf8d17cfba62e17
parentc3061794ef4d03d5b26d4a221a93722b3ed08197
s4-dsdb: use safe length limiting in string->integer conversion

The ldap.py test suite could trigger a read past the end of the struct
ldb_val buffer
source4/lib/ldb-samba/ldif_handlers.c