mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
9148f38c20
Before, talloc_realloc() was being called n times for an array of length n. This could be very expensive on long string arrays since it is reasonable to assume each realloc moves O(n) bytes. This addresses at least one OSS-Fuzz bug, making a timing out test case 100 times faster. Credit to OSS-Fuzz. REF: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19706 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> |
||
---|---|---|
.. | ||
ABI | ||
gen_ndr | ||
idl | ||
ndr | ||
rpc | ||
tests | ||
tools | ||
binding-strings.txt | ||
ndr_krb5pac.pc.in | ||
ndr_nbt.pc.in | ||
ndr_standard.pc.in | ||
ndr.pc.in | ||
tables.pl | ||
wscript_build |