Hey, I am working on a patcher for Wasm. Is there a way to identify the malloc and the free function of the dlmalloc and emmalloc allocator? My supervisor says that malloc prints an error message, such as "out of memory", "allocation failed" or "insufficient memory", if memory allocation via malloc fails. Supposedly, these strings will be stored in the data section on the linear memory. In some wasm modules, i saw these error messages stored in the data section, but I could not quite figure out how these strings are printed nor how they are accessed.
Thank you -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/01d093c1-fb3c-497d-88c9-8a48cd4ec975n%40googlegroups.com.