From: Kenichi Handa <handa@m17n.org>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: emacs-devel@gnu.org
Subject: Re: problem report #101
Date: Tue, 02 Dec 2008 11:16:02 +0900 [thread overview]
Message-ID: <E1L7Kny-00064v-Ag@etlken.m17n.org> (raw)
In-Reply-To: <200812011659.mB1GxPZD015344@mothra.ics.uci.edu> (message from Dan Nicolaescu on Mon, 1 Dec 2008 08:59:25 -0800 (PST))
In article <200812011659.mB1GxPZD015344@mothra.ics.uci.edu>, Dan Nicolaescu <dann@ics.uci.edu> writes:
> CID: 101
> Checker: FORWARD_NULL (help)
> File: base/src/emacs/src/font.c
> Function: font_at
> Description: Variable "face" tracked as NULL was passed to a function that dereferences it.
[...]
> Event var_deref_op: Variable "face" tracked as NULL was dereferenced.
> Event var_deref_model: Variable "face" tracked as NULL was passed to a function that dereferences it. [model]
> Also see events: [var_compare_op][var_deref_model]
> At conditional (5): "c < 128" taking true path
> 3646 int face_id = FACE_FOR_CHAR (f, face, c, pos, string);
> 3647 face = FACE_FROM_ID (f, face_id);
> 3648 }
Here, "face" is a return value of
face_at_string/buffer_position, and thus is never NULL.
Which do you think is better; ignore this waring or use a
new macro FACE_FROM_ID_NO_CHECK instead of FACE_FROM_ID?
/* Like FACE_FROM_ID but don't check the validity of ID. */
#define FACE_FROM_ID_NO_CHECK(F, ID) \
(FRAME_FACE_CACHE (F)->faces_by_id[ID])
---
Kenichi Handa
handa@ni.aist.go.jp
next prev parent reply other threads:[~2008-12-02 2:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-01 16:59 problem report #101 Dan Nicolaescu
2008-12-01 18:11 ` Andreas Schwab
2008-12-02 2:16 ` Kenichi Handa [this message]
2008-12-02 2:24 ` 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=E1L7Kny-00064v-Ag@etlken.m17n.org \
--to=handa@m17n.org \
--cc=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).