Date: Thu, 26 Nov 2020 09:07:45 +0000 (UTC) From: Pawel Biernacki <kaktus@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r368053 - head/lib/libsysdecode Message-ID: <202011260907.0AQ97jFq096590@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011260907.0AQ97jFq096590>