linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [bluez/bluez] 8c6057: lib: Fix out-of-bounds write when concatenating co...
@ 2025-08-25 15:33 Arkadiusz Bokowy
  0 siblings, 0 replies; only message in thread
From: Arkadiusz Bokowy @ 2025-08-25 15:33 UTC (permalink / raw)
  To: linux-bluetooth

  Branch: refs/heads/995289
  Home:   https://github.com/bluez/bluez
  Commit: 8c6057e570e6eccbf3a6f565fbc2d55ae9f19116
      https://github.com/bluez/bluez/commit/8c6057e570e6eccbf3a6f565fbc2d55ae9f19116
  Author: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com>
  Date:   2025-08-25 (Mon, 25 Aug 2025)

  Changed paths:
    M lib/bluetooth/hci.c
    M lib/bluetooth/hci_lib.h

  Log Message:
  -----------
  lib: Fix out-of-bounds write when concatenating commands

This commit fixes the hci_commandstostr() command by writing new line
character in place of trailing space when wrapping long lines. Previous
approach was to append new line character to existing string, which
caused buffer overflow when there was more than 9 lines in the output
string.

Also, the last trailing space is removed in order to return
trailing-spaces-free string to the caller.



To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-25 15:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 15:33 [bluez/bluez] 8c6057: lib: Fix out-of-bounds write when concatenating co Arkadiusz Bokowy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).