1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/librpc
Stefan Metzmacher 8cce23acb9 witness.idl: fix length calculation for witness_IPaddrInfoList
If r->num is 0, we should not dereference r->addr.

Using ndr_size_witness_IPaddrInfoList() also make this much simpler
and avoids the magic 12.

Credit Oss-Fuzz

REF: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22175
REF: https://oss-fuzz.com/testcase-detail/5686294157197312

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14452

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@samba.org>
2021-07-08 09:30:40 +00:00
..
ABI pidl: Avoid leaving array_size NDR tokens around 2021-06-02 03:56:36 +00:00
gen_ndr
idl witness.idl: fix length calculation for witness_IPaddrInfoList 2021-07-08 09:30:40 +00:00
ndr pidl: Avoid leaving array_size NDR tokens around 2021-06-02 03:56:36 +00:00
rpc librpc: Make sure num_protocols is initialized 2021-06-10 10:31:33 +00:00
tests libprc/test: add pull_string_array large array test 2020-08-07 04:44:17 +00:00
tools librpc:tools: Migrate ndrdump to new cmdline option parser 2021-06-20 23:26:32 +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 pkgconfig: Do not hardcode library version numbers in pc files. 2013-08-22 20:48:44 +02:00
ndr_standard.pc.in pkgconfig: Do not hardcode library version numbers in pc files. 2013-08-22 20:48:44 +02:00
ndr.pc.in pkgconfig: Do not hardcode library version numbers in pc files. 2013-08-22 20:48:44 +02:00
tables.pl librpc/tables.pl: remove unused $opt_output option 2018-11-20 01:33:35 +01:00
wscript_build selftest: Add test of NDR marshalling from python, starting with wbint 2021-06-02 03:56:36 +00:00