1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/ctdb/tests/UNIT/eventd
Martin Schwenke f01a179abc ctdb-tools: Fix CID 1539212 - signed/unsigned issue
>>>     CID 1539212:  Control flow issues  (NO_EFFECT)
>>>     This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "p >= 0UL".
216     		while (p >= 0 && output[p] == '\n') {

This is a real problem in the unlikely event that the output contains
only newlines.

Fix the issue by using a pointer and add a test to cover this case.

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

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2023-08-07 08:43:39 +00:00
..
etc-ctdb ctdb-tools: Fix CID 1539212 - signed/unsigned issue 2023-08-07 08:43:39 +00:00
scripts ctdb-common: Use Samba's DEBUG_FILE logging 2022-01-17 03:43:30 +00:00
eventd_001.sh
eventd_002.sh
eventd_003.sh
eventd_004.sh
eventd_005.sh
eventd_006.sh
eventd_007.sh
eventd_008.sh ctdb-tools: Fix CID 1539212 - signed/unsigned issue 2023-08-07 08:43:39 +00:00
eventd_009.sh
eventd_011.sh
eventd_012.sh
eventd_013.sh
eventd_014.sh
eventd_021.sh
eventd_022.sh
eventd_023.sh
eventd_024.sh
eventd_031.sh
eventd_032.sh
eventd_033.sh
eventd_041.sh
eventd_042.sh
eventd_043.sh
eventd_044.sh
eventd_051.sh ctdb-common: Use Samba's DEBUG_FILE logging 2022-01-17 03:43:30 +00:00
eventd_052.sh
README

Unit tests for event daemon