Mmap fail there is a nices detect script

There was an intressting articel in german from Hanno Böck at golem.de about wrong usage of mmap.
he also wrote a detect script:
https://github.com/hannob/mmapfail
This could be also usefull for sonar.

The mmap() POSIX function returns MAP_FAILED or -1 when an error occurs. A common mistake is to check the return value for 0 instead.

Hi @Janpopan ,
Thank you for the info, I will forward the article and the script to the people who might be interested.

Kind regards,
Christophe

1 Like