https://bugs.winehq.org/show_bug.cgi?id=38829
--- Comment #4 from David Baron d_baron@012.net.il --- I am not presently compiling Wine locally (I have in the past so could do so again), so cannot really test this out.
As a matter or principle, all such functions should check their pointers and boundaries and either throw an orderly exception or exit silently (or with some stderr message). One never knows what other developers will throw at one :-)
This bug has been a long and often fixed/recurring problem with this application.