1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/pidl/lib/Parse/Pidl
Andrew Bartlett 603f23b19c pidl: Generate and consume the switch level token for both NDR_SCALARS and NDR_BUFFERS in ndr_pull()
This means what was previously a list becomes a single variable that
could be passed as a function paraemter, but this is avoided for now
because it would change the ABI and be more intrusive.

Before this, a client could cause a NDR token containing the swith level
to be allocated for each and every element in the array that they
promised they were sending (without having to actually send them).

Found by Michael Hanselmann using Honggfuzz and an fuzzer for Samba's
NDR layer.

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

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2019-12-12 02:30:40 +00:00
..
Samba3 pidl: use perl warnings 2019-12-10 02:53:34 +00:00
Samba4 pidl: Generate and consume the switch level token for both NDR_SCALARS and NDR_BUFFERS in ndr_pull() 2019-12-12 02:30:40 +00:00
Wireshark pidl: use perl warnings 2019-12-10 02:53:34 +00:00
Base.pm pidl: optionally annotate output for debug purposes 2019-12-04 05:10:31 +00:00
Compat.pm pidl: use perl warnings 2019-12-10 02:53:34 +00:00
CUtil.pm pidl: use perl warnings 2019-12-10 02:53:34 +00:00
Dump.pm pidl: use perl warnings 2019-12-10 02:53:34 +00:00
Expr.pm pidl: use perl warnings 2019-12-10 02:53:34 +00:00
IDL.pm pidl: use perl warnings 2019-12-10 02:53:34 +00:00
NDR.pm pidl Parse::Pidl::NDR: silence two warnings about undefined strings 2019-12-10 02:53:35 +00:00
ODL.pm pidl: use perl warnings 2019-12-10 02:53:34 +00:00
Samba4.pm pidl: use perl warnings 2019-12-10 02:53:34 +00:00
Typelist.pm pidl: use perl warnings 2019-12-10 02:53:34 +00:00
Util.pm pidl s4::NDR::Parser: read hex numbers as numbers for ranges 2019-12-10 02:53:35 +00:00