From: bugtrack@alsa-project.org Subject: [ALSA - lib 0001576]: free on invalid pointer Date: Fri, 18 Nov 2005 17:01:57 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [85.132.177.35]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id E4E0A187 for ; Fri, 18 Nov 2005 17:01:57 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org The following issue has been RESOLVED. ====================================================================== ====================================================================== Reported By: matled Assigned To: tiwai ====================================================================== Project: ALSA - lib Issue ID: 1576 Category: 0_general Reproducibility: always Severity: minor Priority: normal Status: resolved Resolution: fixed Fixed in Version: ====================================================================== Date Submitted: 11-18-2005 16:17 CET Last Modified: 11-18-2005 17:01 CET ====================================================================== Summary: free on invalid pointer Description: In src/conf.c the parse_args functions uses free on val even if the pointer has not been initialized. My suggestion is either to initialize val with NULL or change the error handling to prevent free(val) if parse_arg returned a value != 0. ====================================================================== ---------------------------------------------------------------------- tiwai - 11-18-05 17:01 ---------------------------------------------------------------------- Applied to CVS. Thanks. Issue History Date Modified Username Field Change ====================================================================== 11-18-05 16:17 matled New Issue 11-18-05 16:17 matled File Added: patch 11-18-05 17:01 tiwai Status new => resolved 11-18-05 17:01 tiwai Resolution open => fixed 11-18-05 17:01 tiwai Assigned To => tiwai 11-18-05 17:01 tiwai Note Added: 0006753 ====================================================================== ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click