Replace all assert(false) and assert(0) with abort()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 26 May 2017 05:02:18 +0000 (01:02 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:45 +0000 (12:57 -0400)
commit0fbb9a9fffe22e0d5211a47118102fa0ba4a766a
treef25b80ddb8504698d180210c0ecfd693b45f75a3
parent5af447e5102d6226ee198e4db52b51e12075f1bb
Replace all assert(false) and assert(0) with abort()

Because assert() statements are not executed with a release/production
build, assert(false) and assert(0) statements are ignored and the
program's execution continues in an unexpected state. This could lead to
very weird and hard-to-debug situations, and potentially to corrupted
output traces.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
18 files changed:
cli/babeltrace-cfg-cli-args-connect.c
cli/babeltrace-cfg-cli-args.c
cli/babeltrace.c
include/babeltrace/ctf-writer/serialize-internal.h
lib/ctf-ir/event-class.c
lib/ctf-ir/resolve.c
lib/ctf-ir/trace.c
lib/ctf-writer/serialize.c
lib/graph/connection.c
lib/graph/iterator.c
lib/plugin/plugin-so.c
plugins/ctf/common/btr/btr.c
plugins/ctf/common/notif-iter/notif-iter.c
plugins/ctf/fs-src/data-stream-file.c
plugins/utils/muxer/muxer.c
tests/lib/test_bt_notification_iterator.c
tests/lib/test_graph_topo.c
tests/plugins/test-utils-muxer.c
This page took 0.02637 seconds and 4 git commands to generate.