Skip to content

Commit 91d9b1b

Browse files
rootvector2dloebl
andauthored
Update src/cgif_raw.c
Co-authored-by: Daniel Löbl <dloebl.2000@gmail.com>
1 parent c28c96b commit 91d9b1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cgif_raw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static int LZW_GenerateStream(LZWResult* pResult, const uint32_t numPixel, const
346346
uint64_t MaxByteListLen = MAX_CODE_LEN * lzwPos / 8ull + 2ull + 1ull; // conservative upper bound
347347
uint64_t MaxByteListBlockLen = MAX_CODE_LEN * lzwPos * (BLOCK_SIZE + 1ull) / 8ull / BLOCK_SIZE + 2ull + 1ull +1ull; // conservative upper bound
348348
byteList = malloc(MaxByteListLen);
349-
byteListBlock = malloc(MaxByteListBlockLen); // TBD check return value of malloc
349+
byteListBlock = malloc(MaxByteListBlockLen);
350350
if(byteList == NULL || byteListBlock == NULL) {
351351
free(byteList);
352352
free(byteListBlock);

0 commit comments

Comments
 (0)