From owner-p4-projects@FreeBSD.ORG Thu Oct 18 04:29:28 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 18E9A16A469; Thu, 18 Oct 2007 04:29:28 +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 D327E16A421 for ; Thu, 18 Oct 2007 04:29: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 A89BA13C447 for ; Thu, 18 Oct 2007 04:29:27 +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 l9I4TRBH093800 for ; Thu, 18 Oct 2007 04:29:27 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l9I4TRtS093797 for perforce@freebsd.org; Thu, 18 Oct 2007 04:29:27 GMT (envelope-from jb@freebsd.org) Date: Thu, 18 Oct 2007 04:29:27 GMT Message-Id: <200710180429.l9I4TRtS093797@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 127653 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:29:28 -0000 http://perforce.freebsd.org/chv.cgi?CH=127653 Change 127653 by jb@jb_freebsd1 on 2007/10/18 04:28:49 We need to be able to handle sections with zero-length data. Affected files ... .. //depot/projects/dtrace/src/lib/libelf/libelf_xlate.c#6 edit Differences ... ==== //depot/projects/dtrace/src/lib/libelf/libelf_xlate.c#6 (text+ko) ==== @@ -68,8 +68,7 @@ return (NULL); } - if (src->d_buf == NULL || dst->d_buf == NULL || - src->d_size == 0) { + if (src->d_buf == NULL || dst->d_buf == NULL) { LIBELF_SET_ERROR(DATA, 0); return (NULL); }