aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/DsdiffDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-21 12:37:20 +0200
committerMax Kellermann <max@duempel.org>2014-08-21 12:37:22 +0200
commit23dce21647b6b7f3f9ddcb9ad267decf2c7388f0 (patch)
treefee034121d1d9eb6b0767c4a449ee6873568aad0 /src/decoder/DsdiffDecoderPlugin.cxx
parent40280fa6cf7dc1e45724c3e965e1eeab03b3994e (diff)
downloadmpd-23dce21647b6b7f3f9ddcb9ad267decf2c7388f0.tar.gz
mpd-23dce21647b6b7f3f9ddcb9ad267decf2c7388f0.tar.xz
mpd-23dce21647b6b7f3f9ddcb9ad267decf2c7388f0.zip
decoer/dsf: fix endless loop on malformed file
When the data chunk size is not a multiple of the frame size, the last partial frame lead to an endless loop. We fix this by checking chunk_sze>=frame instead of chunk_sze>0. This way, the partial frame is simply skipped.
Diffstat (limited to 'src/decoder/DsdiffDecoderPlugin.cxx')
0 files changed, 0 insertions, 0 deletions