From: Dan Nicolaescu <dann@ics.uci.edu>
Subject: Problem report #87
Date: Mon, 17 Jul 2006 10:58:17 -0700 [thread overview]
Message-ID: <200607171758.k6HHwH0c025647@oogie-boogie.ics.uci.edu> (raw)
We have 4 new problem reports due to changes in the past 2
weeks.
This one be no problem, after "realize_basic_faces (f)"
default_face = FACE_FROM_ID (f, DEFAULT_FACE_ID) should be non-null.
Can someone double check this please?
CID: 87
Checker: FORWARD_NULL (help)
File: base/src/emacs/src/xfaces.c
Function: lookup_named_face
Description: Variable "&(default_face)->lface" tracked as NULL was
passed to a function that dereferences it.
5716 int
5717 lookup_named_face (f, symbol, c, signal_p)
5718 struct frame *f;
5719 Lisp_Object symbol;
5720 int c;
5721 int signal_p;
5722 {
5723 Lisp_Object attrs[LFACE_VECTOR_SIZE];
5724 Lisp_Object symbol_attrs[LFACE_VECTOR_SIZE];
5725 struct face *default_face = FACE_FROM_ID (f, DEFAULT_FACE_ID);
5726
Event var_compare_op: Added "default_face" due to comparison "default_face == 0"
Also see events: [var_deref_model]
At conditional (1): "default_face == 0" taking true path
5727 if (default_face == NULL)
5728 {
At conditional (2): "realize_basic_faces == 0" taking false path
5729 if (!realize_basic_faces (f))
5730 return -1;
At conditional (3): "0 < ((f)->face_cache)->used" taking false path
5731 default_face = FACE_FROM_ID (f, DEFAULT_FACE_ID);
5732 }
5733
At conditional (4): "get_lface_attributes == 0" taking false path
5734 if (!get_lface_attributes (f, symbol, symbol_attrs, signal_p))
5735 return -1;
5736
Event var_deref_model: Variable "&(default_face)->lface" tracked as NULL was passed to a function that dereferences it.
Also see events: [var_compare_op]
5737 bcopy (default_face->lface, attrs, sizeof attrs);
5738 merge_face_vectors (f, symbol_attrs, attrs, 0);
5739
5740 return lookup_face (f, attrs, c, NULL);
5741 }
reply other threads:[~2006-07-17 17:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200607171758.k6HHwH0c025647@oogie-boogie.ics.uci.edu \
--to=dann@ics.uci.edu \
/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).