]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/sunrast.c
Fix an exploit in indeo by checking we are not writing out of the strip array.
[ffmpeg] / libavcodec / sunrast.c
index 3bb1998f24a8ff1d87775b20a583996bbe6e9700..f7a7f9c6c03b26a54f1c61029cded2c8e9095b07 100644 (file)
@@ -19,6 +19,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "libavutil/intreadwrite.h"
 #include "avcodec.h"
 
 #define RT_OLD          0
@@ -192,5 +193,5 @@ AVCodec sunrast_decoder = {
     sunrast_decode_frame,
     0,
     NULL,
-    .long_name = "Sun Rasterfile image",
+    .long_name = NULL_IF_CONFIG_SMALL("Sun Rasterfile image"),
 };