Again lets check for -1 from BLI_filesize before continuing.
authorKent Mein <mein@cs.umn.edu>
Tue, 5 Jun 2007 15:51:24 +0000 (15:51 +0000)
committerKent Mein <mein@cs.umn.edu>
Tue, 5 Jun 2007 15:51:24 +0000 (15:51 +0000)
Kent

source/blender/src/playanim.c

index 3092cf8d4f24673d7183ea5d0f8eb7052c5c1329..65853a841d6db9cd98b43dca034d54a205cea608 100644 (file)
@@ -271,6 +271,13 @@ static void build_pict_list(char * first)
                                return;
                        }
                        size = BLI_filesize(file);
+
+                       if (size < 1) {
+                               close(file);
+                               MEM_freeN(picture);
+                               return;
+                       }
+
                        picture->size = size;
                        picture->IB_flags = IB_rect;