From: Dan Nicolaescu <dann@ics.uci.edu>
To: emacs-devel@gnu.org
Subject: Problem report #114: base/src/emacs/src/font.c (Fopen_font); UNINIT
Date: Tue, 2 Dec 2008 14:24:16 -0800 (PST) [thread overview]
Message-ID: <200812022224.mB2MOGQt021767@mothra.ics.uci.edu> (raw)
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
next reply other threads:[~2008-12-02 22:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-02 22:24 Dan Nicolaescu [this message]
2008-12-03 5:11 ` Problem report #114: base/src/emacs/src/font.c (Fopen_font); UNINIT Chong Yidong
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=200812022224.mB2MOGQt021767@mothra.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).