linux/sound/xen
Colin Ian King 3fc4147653 ALSA: xen-front: fix unintention integer overflow on left shifts
Shifting the integer value 1 is evaluated using 32-bit
arithmetic and then used in an expression that expects a 64-bit
value, so there is potentially an integer overflow. Fix this
by using the BIT_ULL macro to perform the shift.

[ Note: as of the time being, no actual integer overflow hits because
  all values are less than 32bit, not including the extended 3-byte or
  DSD formats.  But this is the right fix for future usage, of
  course. -- tiwai ]

Addresses-Coverity: ("Unintentional integer overflow")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-06-28 10:41:17 +02:00
..
Kconfig ALSA: xen-front: Use Xen common shared buffer implementation 2018-12-18 12:19:37 -05:00
Makefile ALSA: xen-front: Use Xen common shared buffer implementation 2018-12-18 12:19:37 -05:00
xen_snd_front.c ALSA: xen-front: Use Xen common shared buffer implementation 2018-12-18 12:19:37 -05:00
xen_snd_front.h ALSA: xen-front: Use Xen common shared buffer implementation 2018-12-18 12:19:37 -05:00
xen_snd_front_alsa.c ALSA: xen-front: fix unintention integer overflow on left shifts 2019-06-28 10:41:17 +02:00
xen_snd_front_alsa.h ALSA: xen-front: Implement ALSA virtual sound driver 2018-05-16 12:59:57 +02:00
xen_snd_front_cfg.c ALSA: xen-front: freeing an error pointer 2018-05-30 13:19:45 +02:00
xen_snd_front_cfg.h ALSA: xen-front: Read sound driver configuration from Xen store 2018-05-16 12:58:39 +02:00
xen_snd_front_evtchnl.c ALSA: xen-front: remove redundant error check on ret 2018-05-28 11:28:44 +02:00
xen_snd_front_evtchnl.h ALSA: xen-front: Implement Xen event channel handling 2018-05-16 12:58:41 +02:00