[bluez/bluez] ff35b1: mesh: use explicit uint32_t when bit shifting left

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

 



  Branch: refs/heads/master
  Home:   https://github.com/bluez/bluez
  Commit: ff35b1d2e97e68f67cc556f85005636b65a190cb
      https://github.com/bluez/bluez/commit/ff35b1d2e97e68f67cc556f85005636b65a190cb
  Author: Inga Stotland <inga.stotland@xxxxxxxxx>
  Date:   2022-03-31 (Thu, 31 Mar 2022)

  Changed paths:
    M mesh/crypto.c
    M mesh/net.c
    M mesh/net.h

  Log Message:
  -----------
  mesh: use explicit uint32_t when bit shifting left

This addresses a situation when a boolean type is represented by
an integer and performing a left shift on a boolean causes
an integer overflow.

This fixes the following runtime error:
"left shift of 1 by 31 places cannot be represented in type 'int'"





[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