Fixes a segfault in the fuzz test when given a certain AFL++ generated bitmap file. Since _KXLLoadBitmap() can return NULL now, there needs to be a NULL check before calling _KXLDeleteImage(). On old versions of libKXL, the PXIpZM file would cause fuzz/sample to loop for a long time.
Also added another unit test, and missing newlines to a couple of error messages.
Fixes a segfault in the fuzz test when given a certain AFL++ generated bitmap file. Since _KXLLoadBitmap() can return NULL now, there needs to be a NULL check before calling _KXLDeleteImage(). On old versions of libKXL, the PXIpZM file would cause fuzz/sample to loop for a long time.
Also added another unit test, and missing newlines to a couple of error messages.