1
Author: Reinhard Tartler <siretart@ubuntu.com>
2
Description: filter name needs to be double 0 terminated
3
Forwarded: http://bugzilla.libav.org/show_bug.cgi?id=35
4
Bug-Gnome: https://bugzilla.gnome.org/show_bug.cgi?id=654634
6
--- a/libpostproc/postprocess.c
7
+++ b/libpostproc/postprocess.c
8
@@ -763,7 +763,8 @@ pp_mode *pp_get_mode_by_name_and_quality
9
ppMode->maxClippedThreshold= 0.01;
12
- av_strlcpy(temp, name, GET_MODE_BUFFER_SIZE);
13
+ memset(temp, 0, GET_MODE_BUFFER_SIZE);
14
+ av_strlcpy(temp, name, GET_MODE_BUFFER_SIZE - 1);
16
av_log(NULL, AV_LOG_DEBUG, "pp: %s\n", name);
18
@@ -819,7 +820,7 @@ pp_mode *pp_get_mode_by_name_and_quality
21
spaceLeft= p - temp + plen;
22
- if(spaceLeft + newlen >= GET_MODE_BUFFER_SIZE){
23
+ if(spaceLeft + newlen >= GET_MODE_BUFFER_SIZE - 1){