mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-22 04:01:23 +00:00
Fix invalid reads during conversion
svn-id: r24246
This commit is contained in:
parent
aac87e10c2
commit
20a0bc6700
@ -83,8 +83,8 @@ static void convertcompressedclip(uint16 height, uint16 width) {
|
||||
uint16 length, i, j, k, word1, word2, word3, word4, cliplength;
|
||||
byte outbyte, outbyte1, x, y;
|
||||
char n;
|
||||
uncbuffer = (byte *)malloc((int32)(height * width / 2));
|
||||
uncbfrout = (byte *)malloc((int32)(height * width / 2));
|
||||
uncbuffer = (byte *)malloc(height * width * 2);
|
||||
uncbfrout = (byte *)malloc(height * width * 2);
|
||||
length = width / 16;
|
||||
length *= height;
|
||||
plane0 = READ_BE_UINT32(clipptr) + clipptr; clipptr += 4; plane0 += 4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user