mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 08:47:31 +00:00
Enable address sanitizer
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#include <sanitizer/lsan_interface.h>
|
||||
|
||||
#include <emscripten/bind.h>
|
||||
#include <emscripten/val.h>
|
||||
#include "avif/avif.h"
|
||||
@@ -47,4 +49,5 @@ val decode(std::string avifimage) {
|
||||
|
||||
EMSCRIPTEN_BINDINGS(my_module) {
|
||||
function("decode", &decode);
|
||||
function("doLeakCheck", &__lsan_do_recoverable_leak_check);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user