unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* problem report #101
@ 2008-12-01 16:59 Dan Nicolaescu
  2008-12-01 18:11 ` Andreas Schwab
  2008-12-02  2:16 ` Kenichi Handa
  0 siblings, 2 replies; 4+ messages in thread
From: Dan Nicolaescu @ 2008-12-01 16:59 UTC (permalink / raw)
  To: emacs-devel

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_compare_op: Added "face" due to comparison "face == 0"
Also see events: [var_deref_op][var_deref_model]
At conditional (1): "face == 0" taking true path

3631 	  if (! face)
3632 	    {
3633 	      int face_id;
3634 	      EMACS_INT endptr;
3635 	

At conditional (2): "string & 7 == 3" taking true path

3636 	      if (STRINGP (string))
3637 		face_id = face_at_string_position (w, string, pos, 0, -1, -1, &endptr,
3638 						   DEFAULT_FACE_ID, 0);
3639 	      else
3640 		face_id = face_at_buffer_position (w, pos, -1, -1, &endptr,
3641 						   pos + 100, 0);

At conditional (3): "face_id < ((f)->face_cache)->used" taking false path

3642 	      face = FACE_FROM_ID (f, face_id);
3643 	    }

At conditional (4): "multibyte != 0" taking true path

3644 	  if (multibyte)
3645 	    {

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 	    }




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-02  2:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-01 16:59 problem report #101 Dan Nicolaescu
2008-12-01 18:11 ` Andreas Schwab
2008-12-02  2:16 ` Kenichi Handa
2008-12-02  2:24   ` Kenichi Handa

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).