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); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"