On Tue Feb 27 15:48:46 2024 +0000, Alex Henrie wrote:
The marshalling and unmarshalling functions crash instead of returning an error code if the buffer is too small. Furthermore, the pointers to the buffer do not move and `HeapSize` returns the same value before and after. I can't be perfectly certain that Windows isn't calling `HeapSize` internally, but I haven't found any evidence that it is.
Then it's probably safe to say that restoring original calls is enough, but we'll need to make sure that internally we use the same ones. That's a good example of side effects from switching to crt functions, that are not really that interesting to spend time investigating.