Files
libxmp/test-dev/test_fuzzer_arch_invalid_patterns.c
2021-07-18 15:03:45 -06:00

19 lines
406 B
C

#include "test.h"
/* This input high memory consumption in the Archimedes Tracker
* loader due to allowing negative pattern counts.
*/
TEST(test_fuzzer_arch_invalid_patterns)
{
xmp_context opaque;
int ret;
opaque = xmp_create_context();
ret = xmp_load_module(opaque, "data/f/load_arch_invalid_patterns");
fail_unless(ret == -XMP_ERROR_LOAD, "module load");
xmp_free_context(opaque);
}
END_TEST