Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2009-04-15 20:16:00 +0400
committerKent Mein <mein@cs.umn.edu>2009-04-15 20:16:00 +0400
commit3616eb9031df319b2865172482413d7dd916c46c (patch)
treea784c938e5a10b2a91a28e0101cc1b60c510c988 /source/blender/imbuf
parent514c78ba39f296fcac60b33d9a040af2051d23cc (diff)
Fixing more errors coverity found.
Imagepaint make sure ibuf exists before we use it. This is CID# 545 editmesh_tools.c make sure were not indexing array with -1 This is CID# 137 (also removed some trailing whitespace I found) anim5.c totlen could be -1 so check its > -1 This is CID# 134 Kent
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/anim5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/anim5.c b/source/blender/imbuf/intern/anim5.c
index ab203fe80de..b6f29b6a145 100644
--- a/source/blender/imbuf/intern/anim5.c
+++ b/source/blender/imbuf/intern/anim5.c
@@ -425,7 +425,7 @@ int startanim5(struct anim * anim) {
/* de hele file wordt in het geheugen gemapped */
totlen = BLI_filesize(file);
- if (totlen && file>=0) {
+ if (totlen>0 && file>=0) {
lseek(file, 0L, SEEK_SET);
mem= MEM_mallocN(totlen, "mmap");