Mmap fail there is a nices detect script

There was an intressting articel in german from Hanno Böck at about wrong usage of mmap.
he also wrote a detect script:
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,

1 Like