summaryrefslogtreecommitdiff
path: root/src/flac
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2016-01-09 10:59:41 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2016-01-09 10:59:46 +1100
commit28817ba52fdd92b0a49f84b2e8848199efc00242 (patch)
treef0a5840b24894582b3438cea93d7fb54d6ab3323 /src/flac
parent262505bd90a528c7add0bdade9afba132be8b1fc (diff)
downloadflac-28817ba52fdd92b0a49f84b2e8848199efc00242.tar.gz
bitwriter: Add overflow check
The old version of `FLAC__bitwriter_write_raw_uint32()` assumes that the unused bits of the `val` argument are equal to zero, but don't check it. This patch adds a new version of that function which does have the check and then calls a new function `FLAC__bitwriter_write_raw_uint32_nocheck()` which behaves like the old one. Code updated to use these two functions as needed. Patch-from: lvqcl <lvqcl.mail@gmail.com>
Diffstat (limited to 'src/flac')
0 files changed, 0 insertions, 0 deletions