summaryrefslogtreecommitdiff
path: root/libavcodec/htmlsubtitles.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-06 01:42:53 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-08 17:02:02 +0200
commitf4ae3cce64bd46b1d539bdeac39753f83015f114 (patch)
tree4340bf904fd6de7d818f91f0b62a93d4c1cb2a0f /libavcodec/htmlsubtitles.h
parentaaeec1c654a2c139a7bc95e677a23d8ac57f1c5e (diff)
downloadffmpeg-f4ae3cce64bd46b1d539bdeac39753f83015f114.tar.gz
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>
Diffstat (limited to 'libavcodec/htmlsubtitles.h')
-rw-r--r--libavcodec/htmlsubtitles.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/htmlsubtitles.h b/libavcodec/htmlsubtitles.h
index e10cdda241..f3a8ef5d8b 100644
--- a/libavcodec/htmlsubtitles.h
+++ b/libavcodec/htmlsubtitles.h
@@ -23,6 +23,6 @@
#include "libavutil/bprint.h"
-void ff_htmlmarkup_to_ass(void *log_ctx, AVBPrint *dst, const char *in);
+int ff_htmlmarkup_to_ass(void *log_ctx, AVBPrint *dst, const char *in);
#endif /* AVCODEC_HTMLSUBTITLES_H */