Parent: e18ce6c959a1135b3487ce0a63bea3e319b89a43
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: 3aec4849280b49cdc6d26f4bd4340b26f9471606
client/mgmt: 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/1216 Fixes: https://github.com/bluez/bluez/issues/1217 Fixes: https://github.com/bluez/bluez/issues/1218 Fixes: https://github.com/bluez/bluez/issues/1219
Diffstat
| M | client/mgmt.c | | | 48 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - |
1 files changed, 40 insertions(+), 8 deletions(-)