Date: Tue, 14 Mar 2017 10:08:12 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r315240 - stable/11/sys/kern Message-ID: <201703141008.v2EA8ChY070877@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Tue Mar 14 10:08:12 2017 New Revision: 315240 URL: https://svnweb.freebsd.org/changeset/base/315240 Log: MFC r314850: Require whole brand string matching for old Elf branding. Modified: stable/11/sys/kern/imgact_elf.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/kern/imgact_elf.c ============================================================================== --- stable/11/sys/kern/imgact_elf.c Tue Mar 14 10:06:20 2017 (r315239) +++ stable/11/sys/kern/imgact_elf.c Tue Mar 14 10:08:12 2017 (r315240) @@ -309,8 +309,8 @@ __elfN(get_brandinfo)(struct image_param continue; if (hdr->e_machine == bi->machine && (hdr->e_ident[EI_OSABI] == bi->brand || - strncmp((const char *)&hdr->e_ident[OLD_EI_BRAND], - bi->compat_3_brand, strlen(bi->compat_3_brand)) == 0)) { + strcmp((const char *)&hdr->e_ident[OLD_EI_BRAND], + bi->compat_3_brand) == 0)) { /* Looks good, but give brand a chance to veto */ if (!bi->header_supported || bi->header_supported(imgp)) return (bi);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703141008.v2EA8ChY070877>