OSDN Git Service

hlsenc: Allocate enough space for the pattern string
authorStefano Sabatini <stefasab@gmail.com>
Thu, 20 Dec 2012 23:27:00 +0000 (00:27 +0100)
committerMartin Storsjö <martin@martin.st>
Sun, 23 Dec 2012 22:02:45 +0000 (00:02 +0200)
commit3193b13aa1e271f6d2dd68de67d448c08aef3c00
tree4978e56636c1bd5c22b53a12470da13579ef250b
parent0940580adb5e6bde8782841b3104fd0783e541f0
hlsenc: Allocate enough space for the pattern string

If s->filename doesn't contain any period/filename extension to strip
away, the buffer will be too small to fit both strings. This isn't
any buffer overflow since the concatenation uses av_strlcat with
the right buffer size.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/hlsenc.c