mirror of
https://github.com/OldUnreal/libxmp.git
synced 2026-04-02 21:37:43 -07:00
19 lines
430 B
C
19 lines
430 B
C
#include "test.h"
|
|
|
|
/* This input caused heap corruption in the Coconizer loader due to
|
|
* a missing bounds check when loading the sequence table.
|
|
*/
|
|
|
|
TEST(test_fuzzer_coco_invalid_sequence)
|
|
{
|
|
xmp_context opaque;
|
|
int ret;
|
|
|
|
opaque = xmp_create_context();
|
|
ret = xmp_load_module(opaque, "data/f/load_coco_invalid_sequence");
|
|
fail_unless(ret == 0 || ret == -XMP_ERROR_LOAD, "module load");
|
|
|
|
xmp_free_context(opaque);
|
|
}
|
|
END_TEST
|