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:
authorClément Foucault <foucault.clem@gmail.com>2019-04-25 21:40:57 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-04-26 00:23:26 +0300
commite85eb51a28d604a88b079d27510d748bc9e71c68 (patch)
tree550274f3d11047716db48f8d7eeb97a6f0388af0 /source/blender/avi
parent56b0cd1db636e94bd8eb928b53816ebf6a951cdf (diff)
AVI: Fix buffer overflow
That was causing crashes when loading uncompressed avi files created with blender 2.79.
Diffstat (limited to 'source/blender/avi')
-rw-r--r--source/blender/avi/intern/avi_rgb32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/avi/intern/avi_rgb32.c b/source/blender/avi/intern/avi_rgb32.c
index fae255d65ba..3efa4814c70 100644
--- a/source/blender/avi/intern/avi_rgb32.c
+++ b/source/blender/avi/intern/avi_rgb32.c
@@ -71,7 +71,7 @@ void *avi_converter_to_rgb32(AviMovie *movie, int stream, unsigned char *buffer,
*size = (size_t)movie->header->Height * (size_t)movie->header->Width * 4;
buf = imb_alloc_pixels(
- movie->header->Height, movie->header->Width, 3, sizeof(unsigned char), "torgb32buf");
+ movie->header->Height, movie->header->Width, 4, sizeof(unsigned char), "torgb32buf");
if (!buf) {
return NULL;
}