summaryrefslogtreecommitdiff
path: root/src/test_grabbag
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2015-02-22 18:05:12 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2015-02-22 21:44:27 +1100
commit8267168d283ae9bc213617b97afc6878f1cdfb8a (patch)
treed742fbb80677ef661fe242994adf18b329bfa291 /src/test_grabbag
parentffcda161ad1f47d730490c91bb95653c4a0be403 (diff)
downloadflac-8267168d283ae9bc213617b97afc6878f1cdfb8a.tar.gz
src/encode.c : Fix potential infinite loop in flac-toflac encoding.
A malformed file (generated by AFL) had a 'samples_left_to_process' value of greater than the actual numbe of samples. When re-encoding the decoder would get to the end of the file and then continuously return a decode status of FLAC__STREAM_DECODER_END_OF_STREAM, causing an infinite loop. Solution is to break out of the loop on two consecutive end-of-stream events.
Diffstat (limited to 'src/test_grabbag')
0 files changed, 0 insertions, 0 deletions