idl: limit recurion on recursive elements
authorGary Lockyer <gary@catalyst.net.nz>
Fri, 7 Feb 2020 02:18:45 +0000 (15:18 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 27 Feb 2020 02:29:20 +0000 (02:29 +0000)
commit575d39048e3b4f619d65d65303ac809c40c5d495
tree8e375c41d7d4386490442bbf398c16c095d24425
parent2ba2ce40f9cf00e3fd898c6dddf84d571028a00f
idl: limit recurion on recursive elements

Limit the max_recursion on self recursive definitions in the idl to
20,000. This value is hopefully large eneough to not impact normal
operation, but small eneough to prevent stack over flow issues.

Credit to OSS-Fuzz

REF: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19820
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14254

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Feb 27 02:29:21 UTC 2020 on sn-devel-184
librpc/idl/drsblobs.idl
librpc/idl/drsuapi.idl
librpc/idl/ioctl.idl
source3/librpc/idl/secrets.idl
source3/librpc/idl/smbXsrv.idl