]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
wmadec: Use read_u32_be().
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 28 Jan 2017 17:02:33 +0000 (18:02 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 25 Mar 2017 10:58:52 +0000 (11:58 +0100)
The shift operation in show_bits() was buggy because p[0] is promoted
to int, and the shift p[0] << 24 results in undefined behavior,
causing the sanitizer of gcc to complain:

bitstream.h:40:21: runtime error: left shift of 230 by 24 places cannot be represented in type 'int'

read_u32_be() gets this right.


No differences found