From 23dce21647b6b7f3f9ddcb9ad267decf2c7388f0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 21 Aug 2014 12:37:20 +0200 Subject: 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. --- NEWS | 1 + 1 file changed, 1 insertion(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index e28d2f121..208462999 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ ver 0.18.13 (not yet released) * decoder + - dsf: fix endless loop on malformed file - ffmpeg: support ffmpeg/libav version 11 ver 0.18.12 (2014/07/30) -- cgit v1.2.3 From 78abcd7df7ad967c44c884773cc7d39cf3c811a9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 21 Aug 2014 12:48:03 +0200 Subject: decoer/dsdiff: fix endless loop on malformed file Same bug as in the previous commit. --- NEWS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 208462999..ee9240410 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,6 @@ ver 0.18.13 (not yet released) * decoder - - dsf: fix endless loop on malformed file + - dsdiff, dsf: fix endless loop on malformed file - ffmpeg: support ffmpeg/libav version 11 ver 0.18.12 (2014/07/30) -- cgit v1.2.3