The Samba-Bugzilla – Bug 12900
index out of bound in ldb_msg_find_common_values
Last modified: 2017-07-23 14:27:20 UTC
ldb wanders out of bounds in some cases when dealing with message elements with zero values.
Found and fixed in master by Lukas Slebodnik <email@example.com>, but 4.7 is affected. 4.6 and below are not.
Once we have a conclusion regarding the python3 ABI files, we should
do a new ldb release from master and then backport the whole ldb release.
Created attachment 13369 [details]
patch avoiding the out-of-bounds error
Created attachment 13370 [details]
patch avoiding getting anywhere near the out-of-bounds error
While both patches are not strictly necessary as either will avoid the bug, they are complementary and it is worth having both.
Created attachment 13371 [details]
tests for the out-of-bounds on zero
tests proving the above patches
(In reply to Stefan Metzmacher from comment #1)
Fixed in v4-7-test