mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-15 10:09:45 +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);
|
||||
}
|
||||
|
||||
1
codecs/avif/dec/avif_dec.d.ts
vendored
1
codecs/avif/dec/avif_dec.d.ts
vendored
@@ -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.
Reference in New Issue
Block a user