From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Problem report #50 Date: Sun, 09 Apr 2006 00:00:08 -0700 Message-ID: <200604090700.k39708eD005573@scanner2.ics.uci.edu> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1144566136 4945 80.91.229.2 (9 Apr 2006 07:02:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 9 Apr 2006 07:02:16 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 09 09:02:13 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FSTw4-00017g-VR for ged-emacs-devel@m.gmane.org; Sun, 09 Apr 2006 09:02:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FSTw4-0006Aw-Kl for ged-emacs-devel@m.gmane.org; Sun, 09 Apr 2006 03:02:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FSTvr-00069Z-2s for emacs-devel@gnu.org; Sun, 09 Apr 2006 03:01:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FSTvq-000690-8d for emacs-devel@gnu.org; Sun, 09 Apr 2006 03:01:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FSTvp-00068t-Tt for emacs-devel@gnu.org; Sun, 09 Apr 2006 03:01:57 -0400 Original-Received: from [128.195.1.36] (helo=scanner2.ics.uci.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FSU0C-0005h9-26 for emacs-devel@gnu.org; Sun, 09 Apr 2006 03:06:28 -0400 Original-Received: from vino.ics.uci.edu (vino.ics.uci.edu [128.195.11.198]) by scanner2.ics.uci.edu (8.13.6/8.13.5) with ESMTP id k39708eD005573 for ; Sun, 9 Apr 2006 00:00:08 -0700 (PDT) Original-To: emacs-devel@gnu.org Original-Lines: 45 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=1.31, required 5, autolearn=disabled, ALL_TRUSTED -1.44, FB_GET_MEDS 2.75) X-ICS-MailScanner-From: dann@vino.ics.uci.edu X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:52553 Archived-At: ERROR CID: 50 Checker: REVERSE_INULL (help) File: emacs/src/xrdb.c Function: get_user_app Description: Pointer "free_it" dereferenced before NULL check Event deref_ptr_in_call: Dereferences pointer "free_it" [model] Also see events: [check_after_deref] At conditional (1): "file = search_magic_path != 0" taking false path At conditional (2): "file = search_magic_path != 0" taking false path 419 if (((path = getenv ("XUSERFILESEARCHPATH")) 420 && (file = search_magic_path (path, class, 0, 0))) 421 422 /* Check for APPLRESDIR; it is a path of directories. In each, 423 we have to search for LANG/CLASS and then CLASS. */ 424 || ((path = getenv ("XAPPLRESDIR")) 425 && ((file = search_magic_path (path, class, "/%L/%N", 0)) 426 || (file = search_magic_path (path, class, "/%N", 0)))) 427 428 /* Check in the home directory. This is a bit of a hack; let's 429 hope one's home directory doesn't contain any %-escapes. */ 430 || (free_it = gethomedir (), 431 ((file = search_magic_path (free_it, class, "%L/%N", 0)) 432 || (file = search_magic_path (free_it, class, "%N", 0))))) 433 { 434 XrmDatabase db = XrmGetFileDatabase (file); 435 free (file); 436 if (free_it) 437 free (free_it); 438 return db; 439 } 440 Event check_after_deref: Pointer "free_it" dereferenced before NULL check Also see events: [deref_ptr_in_call] 441 if (free_it) 442 free (free_it); 443 return NULL; 444 } 445