Merge pull request #665 from shamazmazum/master

Fix segmentation fault on FreeBSD.
This commit is contained in:
Yamagi 2021-02-20 17:33:06 +01:00 committed by GitHub
commit b1ad1329cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,7 @@ Hunk_Begin(int maxsize)
#if defined(PROT_MAX)
/* For now it is FreeBSD exclusif but could possibly be extended
to other like DFBSD for example */
prot = PROT_MAX(prot);
prot |= PROT_MAX(prot);
#endif
membase = mmap(0, maxhunksize, prot,