Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
78abcd7d
Commit
78abcd7d
authored
Aug 21, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoer/dsdiff: fix endless loop on malformed file
Same bug as in the previous commit.
parent
23dce216
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
NEWS
NEWS
+1
-1
DsdiffDecoderPlugin.cxx
src/decoder/DsdiffDecoderPlugin.cxx
+1
-1
No files found.
NEWS
View file @
78abcd7d
ver 0.18.13 (not yet released)
ver 0.18.13 (not yet released)
* decoder
* decoder
- dsf: fix endless loop on malformed file
- ds
diff, ds
f: fix endless loop on malformed file
- ffmpeg: support ffmpeg/libav version 11
- ffmpeg: support ffmpeg/libav version 11
ver 0.18.12 (2014/07/30)
ver 0.18.12 (2014/07/30)
...
...
src/decoder/DsdiffDecoderPlugin.cxx
View file @
78abcd7d
...
@@ -377,7 +377,7 @@ dsdiff_decode_chunk(Decoder &decoder, InputStream &is,
...
@@ -377,7 +377,7 @@ dsdiff_decode_chunk(Decoder &decoder, InputStream &is,
const
unsigned
buffer_samples
=
buffer_frames
*
frame_size
;
const
unsigned
buffer_samples
=
buffer_frames
*
frame_size
;
const
size_t
buffer_size
=
buffer_samples
*
sample_size
;
const
size_t
buffer_size
=
buffer_samples
*
sample_size
;
while
(
chunk_size
>
0
)
{
while
(
chunk_size
>
=
frame_size
)
{
/* see how much aligned data from the remaining chunk
/* see how much aligned data from the remaining chunk
fits into the local buffer */
fits into the local buffer */
size_t
now_size
=
buffer_size
;
size_t
now_size
=
buffer_size
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment