diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2017-02-14 21:21:54 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2017-02-14 21:26:43 +1100 |
commit | 3a7884bf532b134804a83632527d2de9a6b25a30 (patch) | |
tree | e252163b1e658f6f096a5aaa2908c86a2ee4d966 /src/libFLAC/include/private/cpu.h | |
parent | 841ed1aef939e8f2d424bef8d1690ccc4442a74d (diff) | |
download | flac-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