all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
Cc: emacs-devel@gnu.org
Subject: Re: Problem report #28 FALSE
Date: Tue, 11 Apr 2006 08:32:58 +0200	[thread overview]
Message-ID: <443B4D9A.3020209@swipnet.se> (raw)
In-Reply-To: <38425.128.165.123.132.1144698756.squirrel@webmail.lanl.gov>

Thanks for trimming it down.  It is a very verbose report :-).


Stuart D. Herring wrote:
> 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.
> 

The else where f is not asigned (the ??? part) does a CHECK_WINDOW (window) 
where window obviously is not a window (checked in the if directly before), so 
it signals an error and exits and the call to xmenu_show never happens.

	Jan D.

      reply	other threads:[~2006-04-11  6:32 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
2006-04-11  6:32   ` Jan D. [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=443B4D9A.3020209@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.