Parent: 25c23ffca7e6c1aba67ae685ba3fc9060efacd82
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-04-28 23:30:24
Tree: c1e596cdda7893210d15ae199f7780e86df7e12b
test-runner: Fix potentially overflowing call to snprintf The return value of a call to snprintf is the number of characters that would have been written to the buffer assuming there was sufficient space. In the event that the operation reaches the end of the buffer and more than one character is discarded, the return value will be greater than the buffer size. Fixes: https://github.com/bluez/bluez/issues/1215
Diffstat
| M | tools/test-runner.c | | | 10 | +++++++++- |
1 files changed, 9 insertions(+), 1 deletions(-)