diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2021-03-05 06:35:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-04 21:35:02 -0800 |
commit | e1e890bbc1693b826d617b010385ac6a42db674f (patch) | |
tree | acb2ad485292f05e4d9856c0b119b26b840f52ec /projects/libreoffice | |
parent | 5e207cb6070ebaecb0f4872cf66b1757db869dc7 (diff) |
[jbig2dec] Custom allocator now supports test case being run more than once. (#5304)
To make that possible these things were also done:
* Rename variables for clarity.
* Rename functions to separate them from jbig2dec's own allocator API.
* Consistently use size_t for all memory statistics.
* Add helper function for checking peak memory use.
* Add helper function for when limit is reached.
* Add helper function for when allocations fail.
* Add helper function for memory statis at end of run (including leak check).
This will help with fixing jbig2dec issue 21675 reported by OSS-fuzz.
Diffstat (limited to 'projects/libreoffice')
0 files changed, 0 insertions, 0 deletions