1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source4/dsdb
Michael Hanselmann 29d7c80ee4 oLschema2ldif: Resolve multiple parsing bugs
The "oLschema2ldif" program contained multiple bugs triggered by
malformed inputs:

* Iteration beyond list of recognized dsdb syntax OIDs when value wasn't
  found (bug 9567)
* NULL pointer dereference when input didn't define a name
* Heap buffer overflows for unterminated token values

Tests are added to reproduce all identified bugs.

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

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>

Then adapted to use ARRAY_SIZE() consistently as suggested by
metze.

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Apr  3 02:43:07 UTC 2019 on sn-devel-144
2019-04-03 02:43:07 +00:00
..
common ldb: cmocka test for empty attributes bug 2019-03-29 17:29:31 +00:00
dns dns_update: samba_dnsupdate's exit code is not an errno 2019-01-15 07:53:21 +01:00
kcc kcc: Give a better error message when samdb_ntds_objectGUID fails 2019-03-07 03:50:20 +00:00
repl s4:dsdb: Remove unused header file 2019-02-27 07:59:27 +00:00
samdb Relax GPGME version check 2019-04-03 01:40:22 +00:00
schema oLschema2ldif: Resolve multiple parsing bugs 2019-04-03 02:43:07 +00:00
tests/python Spelling fix s/informations/information/ 2019-04-02 01:12:10 +00:00
pydsdb.c Clean up reference used with PyDict_Setxxx 2019-02-07 17:17:46 +01:00
samdb.pc.in s4-pkgconfig: add @LIB_RPATH@ to our link flags 2010-12-08 12:46:00 +01:00
wscript_build build: Remove bld.gen_python_environments() 2019-03-21 04:06:14 +00:00