mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 06:16:00 +01:00
Fix size checks
This commit is contained in:
parent
93705528e2
commit
4cecf5388d
1 changed files with 2 additions and 2 deletions
|
@ -45,8 +45,8 @@ zathura_image_buffer_create(unsigned int width, unsigned int height)
|
|||
g_return_val_if_fail(height != 0, NULL);
|
||||
|
||||
unsigned int size = 0;
|
||||
if (checked_umul(width, height, &size) == false ||
|
||||
checked_umul(size, 3, &size) == false) {
|
||||
if (checked_umul(width, height, &size) == true ||
|
||||
checked_umul(size, 3, &size) == true) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue