blob: ddfeedda694881d24ae7e89acdf349f35f683d02 [file] [log] [blame]
// Integer santizer is a little too aggressive for stb_image_write.
// - there is intentional unsigned overflow in zlib hash functions;
// - PNG filtering intentionally byte-wraps by truncating ints to uint8_t.
#if defined(__clang__)
#pragma clang attribute push(__attribute__((no_sanitize("integer"))), apply_to=function)
#endif
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb_image_write.h>
#if defined(__clang__)
#pragma clang attribute pop
#endif