From: Dan Nicolaescu <dann@ics.uci.edu>
Subject: Re: Problem report #16
Date: Wed, 12 Apr 2006 10:41:27 -0700 [thread overview]
Message-ID: <200604121741.k3CHfRrO029529@amrm2.ics.uci.edu> (raw)
In-Reply-To: <200604111548.k3BFmtRQ015112@scanner2.ics.uci.edu> (Dan Nicolaescu's message of "Tue, 11 Apr 2006 08:48:55 -0700")
Dan Nicolaescu <dann@ics.uci.edu> writes:
> CID: 16
> Checker: FORWARD_NULL (help)
> File: emacs/src/fontset.c
> Function: fs_load_font
> Description: Variable "face" tracked as NULL was dereferenced.
>
> Event var_compare_op: Added "face" due to comparison "face != 0"
> Also see events: [var_deref_op]
> At conditional (1): "face != 0" taking false path
>
> 667 if (face)
> 668 id = face->fontset;
>
> At conditional (2): "id < 0" taking true path
>
> 669 if (id < 0)
> 670 fontset = Qnil;
> 671 else
> 672 fontset = FONTSET_FROM_ID (id);
> 673
>
> At conditional (3): "fontset != Qnil" taking true path
> At conditional (4): "(fontset & -8)->parent != Qnil" taking true path
>
> 674 if (!NILP (fontset)
> 675 && !BASE_FONTSET_P (fontset))
> 676 {
> 677 elt = FONTSET_REF_VIA_BASE (fontset, c);
>
> At conditional (5): "elt != Qnil" taking true path
>
> 678 if (!NILP (elt))
> 679 {
> 680 /* A suitable face for C is already recorded, which means
> 681 that a proper font is already loaded. */
> 682 int face_id = XINT (elt);
> 683
> 684 xassert (face_id == face->id);
>
> At conditional (6): "face_id < ((f)->face_cache)->used" taking false path
>
> 685 face = FACE_FROM_ID (f, face_id);
>
> Event var_deref_op: Variable "face" tracked as NULL was dereferenced.
> Also see events: [var_compare_op]
>
> 686 return (*get_font_info_func) (f, face->font_info_id);
> 687 }
This problem could happen if fs_load_font was called with face=NULL
and id>0. Can that happen?
next prev parent reply other threads:[~2006-04-12 17:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-11 15:48 Problem report #16 Dan Nicolaescu
2006-04-11 17:06 ` Stuart D. Herring
2006-04-12 17:41 ` Dan Nicolaescu [this message]
2006-04-12 18:23 ` Stuart D. Herring
2006-04-13 11:21 ` Kenichi Handa
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=200604121741.k3CHfRrO029529@amrm2.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=emacs-devel@gnu.org \
/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).