unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stuart D. Herring" <herring@lanl.gov>
Subject: Re: Problem report #28
Date: Mon, 10 Apr 2006 12:52:36 -0700 (PDT)	[thread overview]
Message-ID: <38425.128.165.123.132.1144698756.squirrel@webmail.lanl.gov> (raw)
In-Reply-To: <200604101850.k3AIo1vH005312@scanner2.ics.uci.edu>

I don't have an answer for this one, but I've trimmed the issue down for
clarity.  We have the following if-else_if-else:

> 881  	      if (FRAMEP (window))
> 882  		{
> 883  		  f = XFRAME (window);
> 884  		  xpos = 0;
> 885  		  ypos = 0;
> 886  		}
>
> At conditional (12): "window & 7 == 4" taking false path
>
> 887  	      else if (WINDOWP (window))
> 888  		{
> 889  		  CHECK_LIVE_WINDOW (window);
> 890  		  f = XFRAME (WINDOW_FRAME (XWINDOW (window)));
> 891
> 892  		  xpos = WINDOW_LEFT_EDGE_X (XWINDOW (window));
> 893  		  ypos = WINDOW_TOP_EDGE_Y (XWINDOW (window));
> 894  		}
> 895  	      else
> 896  		/* ??? Not really clean; should be CHECK_WINDOW_OR_FRAME,
> 897  		   but I don't want to make one now.  */
>
> At conditional (13): "window & 7 != 4" taking true path
> At conditional (14): "0" taking false path
>
> 898  		CHECK_WINDOW (window);

f, guaranteed to be NULL before this block, is assigned in the first two
cases but not in the third (which is tagged with a "huh?" comment).  Later
f is used in a place Coverity claims requires non-nullity.

Hope this helps the next analyzer,
Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

  reply	other threads:[~2006-04-10 19:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-10 18:50 Problem report #28 Dan Nicolaescu
2006-04-10 19:52 ` Stuart D. Herring [this message]
2006-04-11  6:32   ` Problem report #28 FALSE Jan D.

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=38425.128.165.123.132.1144698756.squirrel@webmail.lanl.gov \
    --to=herring@lanl.gov \
    /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).