Deno Pointer FFI error, malloc(): invalid size (unsorted)
Some runitime im my software i have the error, some me help to fin the line with error?
1 Reply
It's hard to say much anything here since there's no way to know which function you're calling or what its parameters are, but the error probably comes from writing past the ends of a buffer which then messes up malloc.
Your code is assuming that every function is always called with parameters
(a, b, ..., d)
and the corresponding FFI call is (a, b, ..., d, sReposta, esTamanho)
.
If that's not the case then you'll be writing over various ends of various buffers.