Skip to content

Commit

Permalink
[BUGFIX] Roundup module size to PAGE_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Nov 3, 2024
1 parent 0783178 commit 5271991
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scanners/module_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,11 @@ namespace pesieve {
if (imgBufferSize) {
return imgBufferSize;
}
return getHdrImageSize();
size_t defined_size = getHdrImageSize();
if (!defined_size) {
return 0;
}
return peconv::round_up_to_unit(defined_size, (size_t)PAGE_SIZE);
}

size_t getHeaderSize()
Expand Down

0 comments on commit 5271991

Please sign in to comment.