You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since a lot of effort spent on code stability somebody might want to work on allocation failure checking. This kind of testing rely on the custom allocators provided by PCRE2.
These should be the steps:
Pick a pattern, could be a random pattern
Compile / JIT compile the pattern
All allocations are successful, the number of allocations are counted. Their number is N
Loop:
for (I = 0; i < N; I++)
Compile / JIT compile the pattern
Only the first I allocations are successful, then the allocator returns with NULL
The engine should not crash. Furthermore, the custom free function should be called I times, and not with NULL argument. Memory checkers should be able to detect if some memory blocks are not freed.
This could be built into pcre2test.
The text was updated successfully, but these errors were encountered:
Since a lot of effort spent on code stability somebody might want to work on allocation failure checking. This kind of testing rely on the custom allocators provided by PCRE2.
These should be the steps:
Pick a pattern, could be a random pattern
Compile / JIT compile the pattern
All allocations are successful, the number of allocations are counted. Their number is N
Loop:
The engine should not crash. Furthermore, the custom free function should be called I times, and not with NULL argument. Memory checkers should be able to detect if some memory blocks are not freed.
This could be built into pcre2test.
The text was updated successfully, but these errors were encountered: