Skip to content

winio: fix heap corruption and various leaks.

Tamar Christina requested to merge Phyx/ghc:gh-18382-fix-heap-corruption into master

This fixes the heap corruption noticed in !6390 and various other kernel resource leaks.

Heap corruption was caused by an incorrect calling convention and an off by 1 error during malloc.

Part of enabling #20255.

Fixes #21048 (closed).

Also needs backporting to all open 9.x branches.

Edited by Ben Gamari

Merge request reports