unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Problem report #114: base/src/emacs/src/font.c (Fopen_font); UNINIT
@ 2008-12-02 22:24 Dan Nicolaescu
  2008-12-03  5:11 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Nicolaescu @ 2008-12-02 22:24 UTC (permalink / raw)
  To: emacs-devel

CID: 114
Checker: UNINIT (help)
File: base/src/emacs/src/font.c
Function: Fopen_font
Description: Using uninitialized value "isize"


Event var_decl: Declared variable "isize" without initializer
Also see events: [uninit_use]

4434 	  int isize;
4435 	

At conditional (1): "font_entity & 7 != 4" taking false path
At conditional (2): "((0), (font_entity & -8))->size & 4611686018429485056 != 4611686018429485056" taking false path
At conditional (3): "((0), (font_entity & -8))->size & 511 != 14" taking false path
At conditional (4): "0" taking false path

4436 	  CHECK_FONT_ENTITY (font_entity);

At conditional (5): "frame == Qnil" taking true path

4437 	  if (NILP (frame))
4438 	    frame = selected_frame;

At conditional (6): "frame & 7 != 4" taking false path
At conditional (7): "((0), (frame & -8))->size & 4611686018427388928 != 4611686018427388928" taking false path
At conditional (8): "((0), (frame & -8))->terminal == 0" taking false path
At conditional (9): "0" taking false path

4439 	  CHECK_LIVE_FRAME (frame);
4440 	

At conditional (10): "size == Qnil" taking false path

4441 	  if (NILP (size))
4442 	    isize = XINT (AREF (font_entity, FONT_SIZE_INDEX));
4443 	  else
4444 	    {

At conditional (11): "size & 7 != 6" taking false path
At conditional (12): "0" taking false path

4445 	      CHECK_NUMBER_OR_FLOAT (size);

At conditional (13): "size & 7 == 6" taking true path

4446 	      if (FLOATP (size))

Event uninit_use: Using uninitialized value "isize"
Also see events: [var_decl]

4447 		isize = POINT_TO_PIXEL (- isize, XFRAME (frame)->resy);
4448 	      else
4449 		isize = XINT (size);
4450 	      if (isize == 0)
4451 		isize = 120;
4452 	    }
4453 	  return font_open_entity (XFRAME (frame), font_entity, isize);
4454 	}
4




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

* Re: Problem report #114: base/src/emacs/src/font.c (Fopen_font); UNINIT
  2008-12-02 22:24 Problem report #114: base/src/emacs/src/font.c (Fopen_font); UNINIT Dan Nicolaescu
@ 2008-12-03  5:11 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2008-12-03  5:11 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel

Dan Nicolaescu <dann@ics.uci.edu> writes:

> CID: 114
> Checker: UNINIT (help)
> File: base/src/emacs/src/font.c
> Function: Fopen_font
> Description: Using uninitialized value "isize"

Fixed, thanks (this was debug code, not actually compiled).




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

end of thread, other threads:[~2008-12-03  5:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-02 22:24 Problem report #114: base/src/emacs/src/font.c (Fopen_font); UNINIT Dan Nicolaescu
2008-12-03  5:11 ` Chong Yidong

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