Skip to content

Commit

Permalink
Merge PR #93, fixing CVE-2018-19756, Thanks to NOKUBI Takatsugu(@knok)
Browse files Browse the repository at this point in the history
  • Loading branch information
saitoha committed Dec 14, 2019
2 parents 1af6800 + fff0d04 commit aac1df6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/allocator.c
Expand Up @@ -147,6 +147,11 @@ sixel_allocator_malloc(
assert(allocator);
assert(allocator->fn_malloc);

if (n == 0) {
sixel_helper_set_additional_message(
"sixel_allocator_malloc: called with n == 0");
return NULL;
}
return allocator->fn_malloc(n);
}

Expand Down

0 comments on commit aac1df6

Please sign in to comment.