[bluez/bluez] efa900: tools: Fix memory leak in hciconfig

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Branch: refs/heads/master
  Home:   https://github.com/bluez/bluez
  Commit: efa90050937c5eabc6c70a466bd886f164388484
      https://github.com/bluez/bluez/commit/efa90050937c5eabc6c70a466bd886f164388484
  Author: Ildar Kamaletdinov <i.kamaletdinov@xxxxxx>
  Date:   2022-05-09 (Mon, 09 May 2022)

  Changed paths:
    M tools/hciconfig.c

  Log Message:
  -----------
  tools: Fix memory leak in hciconfig

printf() was using function that return dynamic allocated memory as
a parameter.

Found by Linux Verification Center (linuxtesting.org) with the SVACE
static analysis tool.


  Commit: a4741ef4bf6c6fb262b38a897312e929c2161cf9
      https://github.com/bluez/bluez/commit/a4741ef4bf6c6fb262b38a897312e929c2161cf9
  Author: Ildar Kamaletdinov <i.kamaletdinov@xxxxxx>
  Date:   2022-05-09 (Mon, 09 May 2022)

  Changed paths:
    M tools/btgatt-client.c
    M tools/btgatt-server.c

  Log Message:
  -----------
  tools: Fix memory leaks in btgatt-server/client

According to man buffer allocated by getline() should be freed by
the user program even if getline() failed.

Found by Linux Verification Center (linuxtesting.org) with the SVACE
static analysis tool.


  Commit: e9ec1cf8715d72195a94d748777a19b8e2ba4db5
      https://github.com/bluez/bluez/commit/e9ec1cf8715d72195a94d748777a19b8e2ba4db5
  Author: Ildar Kamaletdinov <i.kamaletdinov@xxxxxx>
  Date:   2022-05-09 (Mon, 09 May 2022)

  Changed paths:
    M tools/rfcomm.c

  Log Message:
  -----------
  tools: Fix handle leak in rfcomm

Some branches of execution can make handle (socket) leakage.

Found by Linux Verification Center (linuxtesting.org) with the SVACE
static analysis tool.


  Commit: 42e9b8db92d5d8725e9a1bfd93a5c6a257186776
      https://github.com/bluez/bluez/commit/42e9b8db92d5d8725e9a1bfd93a5c6a257186776
  Author: Ildar Kamaletdinov <i.kamaletdinov@xxxxxx>
  Date:   2022-05-09 (Mon, 09 May 2022)

  Changed paths:
    M src/device.c

  Log Message:
  -----------
  device: Fix uninitialized value usage

Definitely `dbus_bool_t b;` must be initialized before comparing it
with current value.

Found by Linux Verification Center (linuxtesting.org) with the SVACE
static analysis tool.


Compare: https://github.com/bluez/bluez/compare/f0106d92a1e0...42e9b8db92d5



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux