Clean-up: tests: silence bogus warning
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 16 Mar 2022 21:55:45 +0000 (17:55 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 16 Mar 2022 21:55:48 +0000 (17:55 -0400)
commitf2c057a6c6933c7975d27117e0cac9cb44789cc6
tree651a74d1c0f6a73a5d127028478c910403a6c50f
parent6610d7be3cca33951bf9992b8089f05877eee022
Clean-up: tests: silence bogus warning

1486757 Buffer not null terminated
If the buffer is treated as a null terminated string in later operations, a buffer overflow or over-read may occur.

In test_create_ust_event_exclusion(): The string buffer may not have a null terminator if the source string's length is equal to the buffer size (CWE-170)

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I0c3fd6c9d591e1c67d8b80bf12825bb0d1520a65
tests/unit/test_ust_data.cpp
This page took 0.025734 seconds and 4 git commands to generate.