From: "Jan D." <jan.h.d@swipnet.se>
Subject: Re: Problem report #25
Date: Tue, 11 Apr 2006 08:44:05 +0200 [thread overview]
Message-ID: <443B5035.3030109@swipnet.se> (raw)
In-Reply-To: <200604101858.k3AIwmQX005630@scanner2.ics.uci.edu>
Dan Nicolaescu wrote:
> CID: 25 Checker: FORWARD_NULL (help) File: emacs/src/xterm.c Function:
> x_set_mouse_face_gc Description: Variable "face" tracked as NULL was passed
> to a function that dereferences it.
>
> Event var_compare_op: Added "face" due to comparison "face == 0" Also see
> events: [var_deref_op][var_deref_op][var_deref_model] At conditional (1):
> "face == 0" taking true path
>
> 1064 if (face == NULL)
>
> At conditional (2): "9 < (((s)->f)->face_cache)->used" taking false path
>
> 1065 face = FACE_FROM_ID (s->f, MOUSE_FACE_ID); 1066
>
The thing is that MOUSE_FACE_ID always exists on an X11 frame. It is realized
at frame creation. So face can not be NULL after this.
Jan D.
prev parent reply other threads:[~2006-04-11 6:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-10 18:58 Problem report #25 Dan Nicolaescu
2006-04-11 6:44 ` Jan D. [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=443B5035.3030109@swipnet.se \
--to=jan.h.d@swipnet.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).