svn commit: r368053 - head/lib/libsysdecode
Pawel Biernacki
kaktus at FreeBSD.org
Thu Nov 26 09:07:45 UTC 2020
Author: kaktus
Date: Thu Nov 26 09:07:45 2020
New Revision: 368053
URL: https://svnweb.freebsd.org/changeset/base/368053
Log:
libsysdecode: account for invalid protection flags
Reported by: jhb
MFC with: r368022
Modified:
head/lib/libsysdecode/flags.c
Modified: head/lib/libsysdecode/flags.c
==============================================================================
--- head/lib/libsysdecode/flags.c Thu Nov 26 07:34:20 2020 (r368052)
+++ head/lib/libsysdecode/flags.c Thu Nov 26 09:07:45 2020 (r368053)
@@ -662,7 +662,7 @@ sysdecode_mmap_prot(FILE *fp, int prot, int *rem)
printed = false;
protm = PROT_MAX_EXTRACT(prot);
- prot = PROT_EXTRACT(prot);
+ prot &= ~PROT_MAX(protm);
if (protm != 0) {
fputs("PROT_MAX(", fp);
printed = print_mask_int(fp, mmapprot, protm, rem);
More information about the svn-src-head
mailing list