unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Problem report #8
@ 2006-04-09  6:59 Dan Nicolaescu
  2006-04-09 17:37 ` Chong Yidong
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Dan Nicolaescu @ 2006-04-09  6:59 UTC (permalink / raw)



I signed up to see the Coverity problem reports. 
RMS asked me to post a few here.
There are 76 problems, I analyzed 10 of them, none of them were bugs
in emacs.

Hopefully more people can help with this.

If you analyze the problem, please add to the subject the resolution
which can be one of the following:

Status:
UNINSPECTED
BUG
FALSE
RESOLVED
IGNORE
PENDING

I will then put this on the website. Or better mark it there directly
if you have access.

ERROR
CID: 8
Checker: DEADCODE (help)
File: emacs/src/xfns.c
Function: Fx_window_property
Description: After this line, the value of "actual_format" is equal to 32

4327 	      if (rc == Success && tmp_data)
4328 	        {
4329 	          /* The man page for XGetWindowProperty says:
4330 	             "If the returned format is 32, the returned data is represented
4331 	             as a long array and should be cast to that type to obtain the
4332 	             elements."
4333 	             This applies even if long is more than 32 bits, the X library
4334 	             converts from 32 bit elements received from the X server to long
4335 	             and passes the long array to us.  Thus, for that case bcopy can not
4336 	             be used.  We convert to a 32 bit type here, because so much code
4337 	             assume on that.
4338 	
4339 	             The bytes and offsets passed to XGetWindowProperty refers to the
4340 	             property and those are indeed in 32 bit quantities if format is
4341 	             32.  */
4342 	

Event dead_error_condition: On this path, the condition "actual_format < 32" could not be true
Event new_values: Conditional "actual_format == 32"
Event const: After this line, the value of "actual_format" is equal to 32
Also see events: [dead_error_begin][new_values][const]

4343 	          if (actual_format == 32 && actual_format < BITS_PER_LONG)
4344 	            {
4345 	              unsigned long i;

Event dead_error_begin: Cannot reach dead code beginning here
Also see events: [dead_error_condition][new_values][const]

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

end of thread, other threads:[~2006-04-13 23:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-09  6:59 Problem report #8 Dan Nicolaescu
2006-04-09 17:37 ` Chong Yidong
2006-04-09 18:32   ` Dan Nicolaescu
2006-04-09 22:29     ` Richard Stallman
2006-04-10  1:09       ` Dan Nicolaescu
2006-04-10  9:55 ` Problem report #8 FALSE Jan D.
2006-04-10 10:19   ` Miles Bader
2006-04-13 12:36 ` Problem report #8 Kenichi Handa
2006-04-13 23:47   ` Dan Nicolaescu

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