From owner-p4-projects@FreeBSD.ORG Thu Oct 18 04:28:28 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D769B16A477; Thu, 18 Oct 2007 04:28:27 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31C2C16A421 for ; Thu, 18 Oct 2007 04:28:27 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id F27AA13C4B5 for ; Thu, 18 Oct 2007 04:28:26 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l9I4SQu5093776 for ; Thu, 18 Oct 2007 04:28:26 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l9I4SPHp093773 for perforce@freebsd.org; Thu, 18 Oct 2007 04:28:25 GMT (envelope-from jb@freebsd.org) Date: Thu, 18 Oct 2007 04:28:25 GMT Message-Id: <200710180428.l9I4SPHp093773@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 127652 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2007 04:28:28 -0000 http://perforce.freebsd.org/chv.cgi?CH=127652 Change 127652 by jb@jb_freebsd1 on 2007/10/18 04:28:08 I know this code was intended just for the special string section, but there are other sections with data in the same format, so don't barf if sh_type != SHT_STRTAB. Affected files ... .. //depot/projects/dtrace/src/lib/libelf/elf_strptr.c#6 edit Differences ... ==== //depot/projects/dtrace/src/lib/libelf/elf_strptr.c#6 (text+ko) ==== @@ -55,7 +55,7 @@ gelf_getshdr(s, &shdr) == NULL) return (NULL); - if (shdr.sh_type != SHT_STRTAB || + if (/*shdr.sh_type != SHT_STRTAB || */ offset >= shdr.sh_size) { LIBELF_SET_ERROR(ARGUMENT, 0); return (NULL);