public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* Some more GCC10 -fanalyzer inspired patches
@ 2020-05-10 19:53 Mark Wielaard
  2020-05-10 19:53 ` [PATCH 1/7] libdwfl: Cleanup user_core resources on failure in dwfl_core_file_report Mark Wielaard
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Mark Wielaard @ 2020-05-10 19:53 UTC (permalink / raw)
  To: elfutils-devel; +Cc: David Malcolm

I did another build with the final GCC10 and -fanalyzer. The
-Wanalyzer-use-of-uninitialized-value option was removed, which caused
a lot of false positives. Without those it was easier to identify some
real issues. I also tried -fanalyze together with -flto. This takes a
lot of memory (linking libdw.so uses > 12GB) but does allow -fanalyzer
to detect some cross-function issues.

[PATCH 1/7] libdwfl: Cleanup user_core resources on failure in
[PATCH 2/7] tests: Make sure to not call memcmp with NULL arguments.
[PATCH 3/7] libelf: Check __gelf_getehdr_rdlock call doesn't fail in
[PATCH 4/7] libelf: Check for NULL shdr in elf_strptr.
[PATCH 5/7] src: Check ebl_openbackend result before using ebl
[PATCH 6/7] libdwfl: Return failure from dwfl_standard_find_debuginfo
[PATCH 7/7] libcpu: Free unused new bitfield on error in i386_parse.y

I think they all are for real issues, although probably fairly hard
to trigger. All are somewhat trivial and I intent to check them in soon.

Cheers,

Mark

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

end of thread, other threads:[~2020-05-14 12:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-10 19:53 Some more GCC10 -fanalyzer inspired patches Mark Wielaard
2020-05-10 19:53 ` [PATCH 1/7] libdwfl: Cleanup user_core resources on failure in dwfl_core_file_report Mark Wielaard
2020-05-10 19:53 ` [PATCH 2/7] tests: Make sure to not call memcmp with NULL arguments Mark Wielaard
2020-05-10 19:53 ` [PATCH 3/7] libelf: Check __gelf_getehdr_rdlock call doesn't fail in elf_getdata Mark Wielaard
2020-05-10 19:53 ` [PATCH 4/7] libelf: Check for NULL shdr in elf_strptr Mark Wielaard
2020-05-10 19:53 ` [PATCH 5/7] src: Check ebl_openbackend result before using ebl handle Mark Wielaard
2020-05-10 19:53 ` [PATCH 6/7] libdwfl: Return failure from dwfl_standard_find_debuginfo for NULL module Mark Wielaard
2020-05-10 19:53 ` [PATCH 7/7] libcpu: Free unused new bitfield on error in i386_parse.y new_bitfield Mark Wielaard
2020-05-14 12:44 ` Some more GCC10 -fanalyzer inspired patches Mark Wielaard

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