Fix: test_bitfield: buffer overrun accesses
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 18 May 2019 20:25:23 +0000 (16:25 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 21 May 2019 20:14:04 +0000 (16:14 -0400)
commite0412a920ea30da0863abbeaa3943e079030c4ea
tree5094f3c4e94845eb08293d4bb08a50d5a4e61558
parent45b17801378e4f093fdd08a0831f87f3afed51a1
Fix: test_bitfield: buffer overrun accesses

This issue is due to a type mismatch between union member vs type passed
as parameter to the macros as found by Coverity:

** CID 1401409:  Memory - corruptions  (OVERRUN)
/tests/lib/test_bitfield.c: 450 in run_test_signed_write()

Issue introduced by commit 0675eb8c07 "Extend test_bitfield coverage"

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I14c9d69011b369e5dc8be4305ac8bf32cc86d3dd
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1321
CI-Build: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Tested-by: jenkins
Reviewed-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/lib/test_bitfield.c
This page took 0.024194 seconds and 4 git commands to generate.