Skip to content

Commit 7342c51

Browse files
committed
Pass the SCAN_FLAGS_NO_TRYCATCH flag in tests.
If not, SIGSEGV exceptions are captured and is more difficult to see the true nature of the error.
1 parent d374fe4 commit 7342c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/util.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ int matches_blob(
189189
};
190190

191191
int scan_result = yr_rules_scan_mem(
192-
rules, blob, blob_size, 0, _scan_callback, &ctx, 0);
192+
rules, blob, blob_size, SCAN_FLAGS_NO_TRYCATCH, _scan_callback, &ctx, 0);
193193

194194
if (scan_result != ERROR_SUCCESS)
195195
{

0 commit comments

Comments
 (0)