[Haskell-cafe] mallocForeignPtrArray with check against buffer overflows

Henning Thielemann lemming at henning-thielemann.de
Thu Apr 26 21:50:00 UTC 2018


On Thu, 26 Apr 2018, Henning Thielemann wrote:

> I like to test whether some low-level routines overwrite non-allocated 
> memory area. On the Amiga there was the program Mungwall that surrounded 
> memory blocks with some byte patterns at allocation and checked the 
> integrity of those patterns at deallocation.

It seems that electric-fence is the counterpart to Mungwall on Linux. Any 
experiences how to use that in Haskell?


More information about the Haskell-Cafe mailing list