]> git.alsa-project.org Git - alsa-utils.git/commit
axfer: test: fix invalid comparison of 64 bit storage in ILP32 data type
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 28 Jul 2019 04:48:50 +0000 (13:48 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 31 Jul 2019 13:58:46 +0000 (15:58 +0200)
commitfbb222c9bccb407750cea61e3bb6285cb8c1b330
treed74ee559674e23634c5f010a3642e39f7745f824
parent0bc366a15cda243df206ed25c02153593174921d
axfer: test: fix invalid comparison of 64 bit storage in ILP32 data type

In system V ABIs with ILP32 data model, bit shift for '1ul' can brings
undefined behaviour when the calculation result is over 32 bit width.

This commit fixes the bug.

Reported-by: Rolf Eike Beer <eike@sf-mail.de>
Reference: https://bugs.gentoo.org/681652
Reference: https://github.com/alsa-project/alsa-utils/issues/23
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
axfer/test/container-test.c
axfer/test/generator.c
axfer/test/mapper-test.c