mailing list of musl libc
 help / color / mirror / code / Atom feed
* Static analysis results
@ 2015-04-21 16:28 Alexander Monakov
  2015-04-21 16:39 ` Alexander Monakov
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alexander Monakov @ 2015-04-21 16:28 UTC (permalink / raw)
  To: musl

New round of static analysis results.  This time it's mostly opportunities for
very minor cleanups (I'm showing only a few results that I think make sense).
If there's a problem in balance of usefulness vs annoyance, please let me know.

dynlink.c:343
  'if (runtime)' is already established as true at line 337

sem_open.c:sem_open
  I didn't try to follow the code in detail, but it seems possible that 'goto
  fail' can be executed from e.g. line 133 after successful mmap, in which
  case the region is not unmapped

duplocale.c:17
  neither of the conditions cannot hold

dynlink.c:1503
  the first two conditions cannot hold after check at line 1489 and exit at
  line 1501

fcntl.c:42
  F_SETLKW is already taken care of at line 16
  also, why does this file cast arg to 'void *' in several places?

regcomp.c:2848
  condition 'stack != NULL' cannot hold

dynlink.c:428
  on 64-bit arches, multiplication can overflow in 32-bit type before assignment 

Alexander


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

end of thread, other threads:[~2015-04-23 18:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-21 16:28 Static analysis results Alexander Monakov
2015-04-21 16:39 ` Alexander Monakov
2015-04-21 16:57 ` Rich Felker
2015-04-23 16:41 ` Rich Felker
2015-04-23 18:08   ` Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).