All of lore.kernel.org
 help / color / mirror / Atom feed
* [bluez/bluez] ff35b1: mesh: use explicit uint32_t when bit shifting left
@ 2022-03-31 18:41 inga-s
  0 siblings, 0 replies; only message in thread
From: inga-s @ 2022-03-31 18:41 UTC (permalink / raw)
  To: linux-bluetooth

  Branch: refs/heads/master
  Home:   https://github.com/bluez/bluez
  Commit: ff35b1d2e97e68f67cc556f85005636b65a190cb
      https://github.com/bluez/bluez/commit/ff35b1d2e97e68f67cc556f85005636b65a190cb
  Author: Inga Stotland <inga.stotland@intel.com>
  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'"



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

only message in thread, other threads:[~2022-03-31 18:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31 18:41 [bluez/bluez] ff35b1: mesh: use explicit uint32_t when bit shifting left inga-s

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.