aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libilbc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-18 04:19:32 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-23 06:29:53 +0200
commit9b614826275e346ac17b9bc7ef5a58dded5b1855 (patch)
tree7f8c39569a257d6032cfd09fa1f84a503656e543 /libavcodec/libilbc.c
parent1030993db212667d64cd0234c2ef1fccd30f0c1f (diff)
downloadffmpeg-9b614826275e346ac17b9bc7ef5a58dded5b1855.tar.gz
avformat/webmdashenc: Remove possibility of infinite loop
The WebM DASH manifest muxer uses a loop to parse the adaptation_sets string (which is given by the user and governs which AVStreams are mapped to what adaptation set) and the very beginning of this loop is "if (*p == ' ') continue;". This of course leads to an infinite loop if the condition is true. It is true if e.g. the string begins with ' ' or if there are more than one ' ' between different adaptation set groups. To fix this, the parsing process has been modified to consume the space if it is at a place where it can legitimately occur, i.e. when a new adaptation set group is expected. The latter restriction implies that an error is returned if a space exists where none is allowed to exist. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/libilbc.c')
0 files changed, 0 insertions, 0 deletions