From patchwork Mon Jul 1 08:05:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 256028 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 77BBC2C007E for ; Mon, 1 Jul 2013 18:05:47 +1000 (EST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1UtZ7J-0005ID-Gr; Mon, 01 Jul 2013 08:05:45 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1UtZ7A-0005Hb-Oa for fwts-devel@lists.ubuntu.com; Mon, 01 Jul 2013 08:05:36 +0000 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginmedia.com ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1UtZ7A-0007ig-LO for fwts-devel@lists.ubuntu.com; Mon, 01 Jul 2013 08:05:36 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH] fwts_iasl_interface.c: allocate temp buffers required for IASL (LP: #1195209) Date: Mon, 1 Jul 2013 09:05:36 +0100 Message-Id: <1372665936-27179-1-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.8.1.2 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King Earlier changes in ACPICA require us now to allocate some temporary parsing buffers. Fixes bug LP: #1195209 Signed-off-by: Colin Ian King Acked-by: Keng-Yu Lin Acked-by: Ivan Hu --- src/acpica/source/compiler/fwts_iasl_interface.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/acpica/source/compiler/fwts_iasl_interface.c b/src/acpica/source/compiler/fwts_iasl_interface.c index 76f6356..84670e4 100644 --- a/src/acpica/source/compiler/fwts_iasl_interface.c +++ b/src/acpica/source/compiler/fwts_iasl_interface.c @@ -42,6 +42,11 @@ static void init_asl_core(void) Gbl_Files[ASL_FILE_STDOUT].Filename = "STDOUT"; Gbl_Files[ASL_FILE_STDERR].Handle = stdout; Gbl_Files[ASL_FILE_STDERR].Filename = "STDOUT"; + + Gbl_LineBufferSize = 16384; + Gbl_CurrentLineBuffer = NULL; + Gbl_MainTokenBuffer = NULL; + UtExpandLineBuffers(); } int fwts_iasl_disassemble_aml(const char *aml, const char *outputfile)