diff options
author | Kent Mein <mein@cs.umn.edu> | 2009-04-15 20:16:00 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2009-04-15 20:16:00 +0400 |
commit | 3616eb9031df319b2865172482413d7dd916c46c (patch) | |
tree | a784c938e5a10b2a91a28e0101cc1b60c510c988 /source/blender/imbuf | |
parent | 514c78ba39f296fcac60b33d9a040af2051d23cc (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.c | 2 |
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"); |