From patchwork Wed Mar 18 21:43:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Noonan X-Patchwork-Id: 451634 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 836D114012C for ; Thu, 19 Mar 2015 08:50:10 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 96C668F482; Wed, 18 Mar 2015 21:50:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Olf3Ytyer-96; Wed, 18 Mar 2015 21:50:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id E4F4C8D81B; Wed, 18 Mar 2015 21:50:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 21C621C20E8 for ; Wed, 18 Mar 2015 21:50:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 193F58D410 for ; Wed, 18 Mar 2015 21:50:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XwMV3lyv4YPJ for ; Wed, 18 Mar 2015 21:50:03 +0000 (UTC) X-Greylist: delayed 00:06:55 by SQLgrey-1.7.6 Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2C43691DBC for ; Wed, 18 Mar 2015 21:50:03 +0000 (UTC) Received: by pabxg6 with SMTP id xg6so41630852pab.0 for ; Wed, 18 Mar 2015 14:50:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Mk6MtOPqPEtd/zpfJquXWv0Y3jBRX8Tf+/FwITqlDKk=; b=DliEXpGCmyBZnu5v+OIR+Css/GsGS9QHPzL0RR7CaNvqYo7Tjxz1ACTIrg6If4Pcff 7z111q5dYbMZajCKsJQ3FUG/ojdHWZFTgCovCoA0NfoCl2PMrhmW1BDqUlLd49BpF8uZ KgGGtYT43+19hWFSFPahniuSaMnlNGRWC64iv2K9gqqm2kId4/cZv/OsUSTe3ANKd0IC P3/4x+g2ZaVJ6ALL8PpgVuSTRE084nXvKQQl3xvwqFDJQpsuRFX0zrHmyqeJJCueXaql kP1mARuiNP11P9HPLygrA0fPTY5WMWyBSkkJ96U22yY1IROI7VfMUQV0K4MGeIxdKUE6 EFBQ== X-Gm-Message-State: ALoCoQmMljGiJJRt2Om+5vG1pJQ0n7H42XuHaimrvsvQxie9c5CrZDpqV5xooY0ha7jqjVjsUAp2 X-Received: by 10.66.193.226 with SMTP id hr2mr128209875pac.47.1426715006087; Wed, 18 Mar 2015 14:43:26 -0700 (PDT) Received: from steven@uplinklabs.net ([104.152.107.133]) by mx.google.com with ESMTPSA id fm3sm29220763pab.29.2015.03.18.14.43.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2015 14:43:24 -0700 (PDT) Received: by steven@uplinklabs.net (sSMTP sendmail emulation); Wed, 18 Mar 2015 14:43:22 -0700 From: Steven Noonan To: buildroot@busybox.net Date: Wed, 18 Mar 2015 14:43:02 -0700 Message-Id: <1426714983-24803-6-git-send-email-steven@uplinklabs.net> X-Mailer: git-send-email 2.3.3 In-Reply-To: <1426714983-24803-1-git-send-email-steven@uplinklabs.net> References: <1426714983-24803-1-git-send-email-steven@uplinklabs.net> Subject: [Buildroot] [PATCH 6/7] package/perf: add patch to prevent crash on empty history buffer X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Steven Noonan --- package/perf/0002-fix-crash-on-empty-buffer.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/perf/0002-fix-crash-on-empty-buffer.patch diff --git a/package/perf/0002-fix-crash-on-empty-buffer.patch b/package/perf/0002-fix-crash-on-empty-buffer.patch new file mode 100644 index 0000000..b8383cf --- /dev/null +++ b/package/perf/0002-fix-crash-on-empty-buffer.patch @@ -0,0 +1,11 @@ +--- a/tools/perf/ui/browsers/hists.c ++++ b/tools/perf/ui/browsers/hists.c +@@ -1059,7 +1059,7 @@ do_offset: + } + first = false; + } +- } else { ++ } else if (nd) { + browser->top = nd; + h = rb_entry(nd, struct hist_entry, rb_node); + h->row_offset = 0;