diff shorten.c @ 4226:43ebe9279fa0 libavcodec

fix some potential security issues, patch by Matthias Hopf, mat at mshopf dot de
author bcoudurier
date Wed, 22 Nov 2006 01:11:29 +0000
parents c8c591fe26f8
children 6679d37a3338
line wrap: on
line diff
--- a/shorten.c	Tue Nov 21 21:18:55 2006 +0000
+++ b/shorten.c	Wed Nov 22 01:11:29 2006 +0000
@@ -335,7 +335,8 @@
         }
         s->nwrap = FFMAX(NWRAP, maxnlpc);
 
-        allocate_buffers(s);
+        if (allocate_buffers(s))
+            return -1;
 
         init_offset(s);