[BUG] Possible use after-free in src/misc/messages.c
This bug, can be hidden in the aout implementation so it needs to be fixed before implementing the audio module. It must be related to a buggy logger module. Eventhough the logger looks good. So I have to look into the call sites.
Interesting fact: Some errors related to memory in chrome will by default only make the page crash without allowing us to get logged debug messages. We need to have crash reporting enabled.
exception thrown: RuntimeError: memory access out of bounds,RuntimeError: memory access out of bounds
at strlen (wasm-function[14250]:0x9b67fb)
at Module._strlen (http://localhost:6931/experimental.js:13141:34)
at __formatString (http://localhost:6931/experimental.js:10007:37)
at _emscripten_log (http://localhost:6931/experimental.js:10217:22)
at EmscriptenPrintMsg (wasm-function[2267]:0xe3e0f)
at vlc_vaLogModule (wasm-function[14020]:0x9adda2)
at vlc_vaLogSwitch (wasm-function[14024]:0x9addff)
at vlc_vaLog (wasm-function[14014]:0x9adaba)
at vlc_object_Log (wasm-function[14036]:0x9ae1a3)
at Create.31 (wasm-function[13196]:0x9763e7)
printErr @ experimental.html:1246
experimental.js:232 Uncaught RuntimeError: memory access out of bounds
at strlen (wasm-function[14250]:0x9b67fb)
at Module._strlen (http://localhost:6931/experimental.js:13141:34)
at __formatString (http://localhost:6931/experimental.js:10007:37)
at _emscripten_log (http://localhost:6931/experimental.js:10217:22)
at EmscriptenPrintMsg (wasm-function[2267]:0xe3e0f)
at vlc_vaLogModule (wasm-function[14020]:0x9adda2)
at vlc_vaLogSwitch (wasm-function[14024]:0x9addff)
at vlc_vaLog (wasm-function[14014]:0x9adaba)
at vlc_object_Log (wasm-function[14036]:0x9ae1a3)
at Create.31 (wasm-function[13196]:0x9763e7)
We are getting this error on the https://code.videolan.org/b1ue/vlc/commits/wip-fix-logging branch, this error misteriously disappears when we add a log inside vlc_vaLogModule.
Edited by Mehdi Sabwat