OSDN Git Service

avcodec/htmlsubtitles: Check for string truncation and return error
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 5 May 2017 23:42:53 +0000 (01:42 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 May 2017 15:02:02 +0000 (17:02 +0200)
commitf4ae3cce64bd46b1d539bdeac39753f83015f114
tree4340bf904fd6de7d818f91f0b62a93d4c1cb2a0f
parentaaeec1c654a2c139a7bc95e677a23d8ac57f1c5e
avcodec/htmlsubtitles: Check for string truncation and return error

Fixes out of array access
Fixes: 1354/clusterfuzz-testcase-minimized-5520132195483648

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/htmlsubtitles.c
libavcodec/htmlsubtitles.h