Hi Ossama,
On 9/16/19 3:36 PM, Ossama Othman wrote:
The loop iteration over the 'bits' array in
l_uintset_isempty()
exceeded the maximum offset for the given l_uintset, resulting in
out-of-bounds bits being considered for emptiness. Add a test that
demonstrates the problem, and correct the maximum offset when
iterating over the l_uintset 'bits' field.
Ossama Othman (2):
unit: Add l_uintset_isempty() test
uintset: Do not exceed max offset in empty check
ell/uintset.c | 5 ++++-
unit/test-uintset.c | 17 +++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
Nice catch, both applied.
Regards,
-Denis