summaryrefslogtreecommitdiff
path: root/src/libFLAC/include/private/cpu.h
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2017-02-14 21:21:54 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2017-02-14 21:26:43 +1100
commit3a7884bf532b134804a83632527d2de9a6b25a30 (patch)
treee252163b1e658f6f096a5aaa2908c86a2ee4d966 /src/libFLAC/include/private/cpu.h
parent841ed1aef939e8f2d424bef8d1690ccc4442a74d (diff)
downloadflac-3a7884bf532b134804a83632527d2de9a6b25a30.tar.gz
flac/encode.c: Fix an integer overflow
When encoding a 24 bit multichannel W64 file on a 32 bit system, a calculation could overflow resulting in a "got partial sample" error and early termination of the encoding process. The fix was to replace the cast to `size_t` (which is only 32 bits on a 32 bit system) with a cast to `uin64_t`. Thanks to Janne Hyvärinen for helping to track down the problem. Closes: https://sourceforge.net/p/flac/bugs/453
Diffstat (limited to 'src/libFLAC/include/private/cpu.h')
0 files changed, 0 insertions, 0 deletions