Enable address sanitizer

This commit is contained in:
Surma
2020-08-11 18:41:09 +01:00
parent db6dea846a
commit d89e846896
11 changed files with 16735 additions and 185 deletions

View File

@@ -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);
}

View File

@@ -1,5 +1,6 @@
interface AVIFModule extends EmscriptenWasm.Module {
decode(data: BufferSource): ImageData | null;
doLeakCheck(): void;
}
export default function(opts: EmscriptenWasm.ModuleOpts): AVIFModule;

File diff suppressed because it is too large Load Diff

Binary file not shown.