1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/librpc
Douglas Bagnall 9148f38c20 ndr: avoid excessive reallocing in pull_string_array
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>
2020-08-03 02:51:35 +00:00
..
ABI libndr: Return enum ndr_err_code from ndr_{pull,push}_steal_switch_value() 2019-12-12 03:56:23 +00:00
gen_ndr
idl librpc/idl: Add dnsp_DnsProperty_short 2020-05-15 06:05:30 +00:00
ndr ndr: avoid excessive reallocing in pull_string_array 2020-08-03 02:51:35 +00:00
rpc librpc: core: Move the s4 handles implementation to the RPC server core 2020-05-24 23:55:36 +00:00
tests CVE-2020-10745: librpc/tests: cmocka tests of dns and ndr strings 2020-07-02 09:01:41 +00:00
tools Fix clang 9 missing-field-initializer warnings 2020-05-08 09:31:31 +00:00
binding-strings.txt docs: Document DCEPRC binding string for rpcclient 2019-02-04 02:03:56 +01:00
ndr_krb5pac.pc.in build: correct package dependencies 2017-04-18 18:54:13 +02:00
ndr_nbt.pc.in
ndr_standard.pc.in
ndr.pc.in
tables.pl librpc/tables.pl: remove unused $opt_output option 2018-11-20 01:33:35 +01:00
wscript_build CVE-2020-10745: ndr/dns-utils: prepare for NBT compatibility 2020-07-02 09:01:41 +00:00