1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb/event
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
..
event_client.c ctdb-event: Add event daemon client code 2018-07-05 06:52:43 +02:00
event_cmd.c ctdb-event: Switch to ETIMEDOUT instead of ETIME 2018-07-28 03:50:10 +02:00
event_conf.c ctdb-event: Fix signed/unsigned comparisons by casting 2019-07-05 05:03:24 +00:00
event_conf.h
event_config.c ctdb-event: Add event daemon implementation 2018-07-05 06:52:43 +02:00
event_context.c ctdb-event: Add event daemon implementation 2018-07-05 06:52:43 +02:00
event_daemon.c ctdb-event: Reopen logs on SIGHUP 2022-01-17 03:43:30 +00:00
event_private.h ctdb-event: Add event daemon implementation 2018-07-05 06:52:43 +02:00
event_protocol_api.h
event_protocol_test.c ctdb-tests: Iterate protocol tests internally 2022-02-14 04:32:29 +00:00
event_protocol_util.c
event_protocol.c ctdb-event: Assign missing return value 2019-07-05 05:03:24 +00:00
event_protocol.h
event_request.c ctdb-event: Add event daemon implementation 2018-07-05 06:52:43 +02:00
event_tool.c ctdb-tools: Fix CID 1539212 - signed/unsigned issue 2023-08-07 08:43:39 +00:00
event_tool.h ctdb-event: Add event daemon client tool 2018-07-05 06:52:43 +02:00
event.h ctdb-event: Add event daemon client code 2018-07-05 06:52:43 +02:00