[bluez/bluez] 4c66c9: main: Fix scanning alert no. 21

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

 



  Branch: refs/heads/957766
  Home:   https://github.com/bluez/bluez
  Commit: 4c66c9791afa63a7190493f38ca3b93da47504ad
      https://github.com/bluez/bluez/commit/4c66c9791afa63a7190493f38ca3b93da47504ad
  Author: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
  Date:   2025-04-28 (Mon, 28 Apr 2025)

  Changed paths:
    M src/main.c

  Log Message:
  -----------
  main: Fix scanning alert no. 21

Comparison of narrow type with wide type in loop condition
Comparison between of type uint16_t and of wider type size_t.

In a loop condition, comparison of a value of a narrow type with a value
of a wide type may result in unexpected behavior if the wider value is
sufficiently large (or small). This is because the narrower value may
overflow. This can lead to an infinite loop.



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




[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