gcc/gcc/testsuite/gcc.dg/analyzer
David Malcolm bddd8d86e3 analyzer: fix missing -Wanalyzer-use-of-uninitialized-value on special-cased functions [PR106573]
We were missing checks for uninitialized params on calls to functions
that the analyzer has hardcoded knowledge of - both for those that are
handled just by state machines, and for those that are handled in
region-model-impl-calls.cc (for those arguments for which the svalue
wasn't accessed in handling the call).

Fixed thusly.

gcc/analyzer/ChangeLog:
	PR analyzer/106573
	* region-model.cc (region_model::on_call_pre): Ensure that we call
	get_arg_svalue on all arguments.

gcc/testsuite/ChangeLog:
	PR analyzer/106573
	* gcc.dg/analyzer/error-uninit.c: New test.
	* gcc.dg/analyzer/fd-uninit-1.c: New test.
	* gcc.dg/analyzer/file-uninit-1.c: New test.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
2022-08-09 19:58:54 -04:00
..
torture analyzer: fix state explosion on va_arg [PR106413] 2022-07-22 19:50:54 -04:00
20020129-1.c
CVE-2005-1689-dedupe-issue-2.c
CVE-2005-1689-dedupe-issue.c
CVE-2005-1689-minimal.c
abort.c
abs-1.c
aliasing-1.c
aliasing-2.c
aliasing-3.c analyzer: make use of may_be_aliased in alias detection [PR103546] 2022-01-06 17:42:05 -05:00
alloca-leak.c
allocation-size-1.c gcc.dg/analyzer/allocation-size-1..5.c: Fix for 32-bit newlib targets 2022-07-05 02:00:21 +02:00
allocation-size-2.c gcc.dg/analyzer/allocation-size-1..5.c: Fix for 32-bit newlib targets 2022-07-05 02:00:21 +02:00
allocation-size-3.c gcc.dg/analyzer/allocation-size-1..5.c: Fix for 32-bit newlib targets 2022-07-05 02:00:21 +02:00
allocation-size-4.c gcc.dg/analyzer/allocation-size-1..5.c: Fix for 32-bit newlib targets 2022-07-05 02:00:21 +02:00
allocation-size-5.c gcc.dg/analyzer/allocation-size-1..5.c: Fix for 32-bit newlib targets 2022-07-05 02:00:21 +02:00
analyzer-decls.h analyzer: implement __analyzer_dump_escaped 2022-01-07 19:04:01 -05:00
analyzer-verbosity-0.c
analyzer-verbosity-1.c
analyzer-verbosity-2.c
analyzer-verbosity-2a.c analyzer: Fix tests for glibc 2.35 [PR101081] 2022-02-08 21:36:21 -05:00
analyzer-verbosity-3.c
analyzer-verbosity-3a.c analyzer: Fix tests for glibc 2.35 [PR101081] 2022-02-08 21:36:21 -05:00
analyzer.exp Update copyright years. 2022-01-03 10:42:10 +01:00
asm-x86-1.c testsuite: avoid analyzer asm failures on non-Linux 2022-02-07 18:31:11 -05:00
asm-x86-dyndbg-1.c analyzer: add region::tracked_p to optimize state objects [PR104954] 2022-03-24 20:58:10 -04:00
asm-x86-dyndbg-2.c analyzer: add region::tracked_p to optimize state objects [PR104954] 2022-03-24 20:58:10 -04:00
asm-x86-lp64-1.c testsuite: avoid analyzer asm failures on non-Linux 2022-02-07 18:31:11 -05:00
asm-x86-lp64-2.c testsuite: avoid analyzer asm failures on non-Linux 2022-02-07 18:31:11 -05:00
attr-const-1.c analyzer: handle __attribute__((const)) [PR104434] 2022-02-23 18:51:26 -05:00
attr-const-2.c analyzer: handle __attribute__((const)) [PR104434] 2022-02-23 18:51:26 -05:00
attr-const-3.c analyzer: handle __attribute__((const)) [PR104434] 2022-02-23 18:51:26 -05:00
attr-malloc-1.c analyzer: fixes to free of non-heap detection [PR104560] 2022-02-16 18:48:30 -05:00
attr-malloc-2.c
attr-malloc-4.c
attr-malloc-5.c
attr-malloc-6.c
attr-malloc-CVE-2019-19078-usb-leak.c
attr-malloc-misuses.c
attr-tainted_args-1.c Add __attribute__ ((tainted_args)) 2022-01-13 20:18:20 -05:00
attr-tainted_args-misuses.c Add __attribute__ ((tainted_args)) 2022-01-13 20:18:20 -05:00
attribute-nonnull.c
bitfields-1.c analyzer: bitfield fixes [PR99212] 2021-06-08 14:45:57 -04:00
boxed-malloc-1.c analyzer: fix accessing wrong stack frame on interprocedural return [PR104979] 2022-03-23 17:40:29 -04:00
bzero-1.c
bzip2-arg-parse-1.c
call-summaries-1.c
callbacks-1.c
callbacks-2.c
callbacks-3.c
calloc-1.c analyzer: fix zero-fill of calloc 2022-02-03 17:45:47 -05:00
capacity-1.c analyzer: don't assume target has alloca [PR102779] 2021-11-16 20:59:49 -05:00
capacity-2.c analyzer: support "bifurcation"; reimplement realloc [PR99260] 2021-08-30 18:36:31 -04:00
capacity-3.c analyzer: don't assume target has alloca [PR102779] 2021-11-16 20:59:49 -05:00
casts-1.c analyzer: handle more casts of string literals [PR98797] 2022-02-10 13:00:58 -05:00
casts-2.c
clobbers-1.c analyzer: reimplement -Wanalyzer-use-of-uninitialized-value [PR95006 et al] 2021-07-15 15:07:07 -04:00
clobbers-2.c analyzer: eliminate enum binding_key [PR95006] 2021-06-30 10:27:40 -04:00
combined-conditionals-1.c
compound-assignment-1.c
compound-assignment-2.c
compound-assignment-3.c
compound-assignment-4.c
compound-assignment-5.c
conditionals-3.c
conditionals-notrans.c
conditionals-trans.c
data-model-1.c analyzer: show region creation events for uninit warnings 2022-01-27 18:02:56 -05:00
data-model-2.c
data-model-4.c
data-model-5.c
data-model-5b.c
data-model-5c.c
data-model-5d.c
data-model-7.c
data-model-8.c
data-model-9.c
data-model-10.c
data-model-11.c
data-model-12.c
data-model-13.c
data-model-14.c
data-model-15.c
data-model-16.c
data-model-17.c
data-model-18.c
data-model-19.c
data-model-20.c analyzer: reimplement -Wanalyzer-use-of-uninitialized-value [PR95006 et al] 2021-07-15 15:07:07 -04:00
data-model-21.c
data-model-22.c analyzer: fix uninit false positive on overlapping bindings 2021-08-23 14:01:01 -04:00
data-model-23.c analyzer: assume that POINTER_PLUS_EXPR of non-NULL is non-NULL [PR101962] 2021-08-23 14:07:39 -04:00
data-model-path-1.c
describe-1.c
disabling.c
dot-output.c
double-free-lto-1-a.c
double-free-lto-1-b.c
double-free-lto-1.h
dump-state.c analyzer: add __analyzer_dump_state 2021-07-16 15:47:06 -04:00
edges-1.c analyzer: Fix tests for glibc 2.35 [PR101081] 2022-02-08 21:36:21 -05:00
edges-2.c
equivalence.c
error-1.c
error-2.c
error-3.c
error-uninit.c analyzer: fix missing -Wanalyzer-use-of-uninitialized-value on special-cased functions [PR106573] 2022-08-09 19:58:54 -04:00
escaping-1.c analyzer: implement __analyzer_dump_escaped 2022-01-07 19:04:01 -05:00
expect-1.c
explode-1.c analyzer: fix false leak due to overeager state merging [PR103217] 2021-11-19 15:25:27 -05:00
explode-2.c analyzer: fix issues with phi handling 2021-07-21 17:24:08 -04:00
explode-2a.c analyzer: fix issues with phi handling 2021-07-21 17:24:08 -04:00
factorial.c
fd-1.c analyzer: support for creat, dup, dup2 and dup3 [PR106298] 2022-08-02 22:22:15 +05:30
fd-2.c analyzer: support for creat, dup, dup2 and dup3 [PR106298] 2022-08-02 22:22:15 +05:30
fd-3.c analyzer: convert tests with dos2unix 2022-07-25 19:33:16 +02:00
fd-4.c analyzer: support for creat, dup, dup2 and dup3 [PR106298] 2022-08-02 22:22:15 +05:30
fd-5.c analyzer: convert tests with dos2unix 2022-07-25 19:33:16 +02:00
fd-dup-1.c analyzer: support for creat, dup, dup2 and dup3 [PR106298] 2022-08-02 22:22:15 +05:30
fd-meaning.c analyzer: add get_meaning_for_state_change vfunc to fd_diagnostic in sm-fd.cc [PR106286] 2022-07-27 19:16:43 +05:30
fd-uninit-1.c analyzer: fix missing -Wanalyzer-use-of-uninitialized-value on special-cased functions [PR106573] 2022-08-09 19:58:54 -04:00
feasibility-1.c
feasibility-2.c
feasibility-3.c analyzer: fix feasibility false +ve with overly complex svalues 2021-07-22 22:36:05 -04:00
fgets-1.c analyzer: reimplement -Wanalyzer-use-of-uninitialized-value [PR95006 et al] 2021-07-15 15:07:07 -04:00
fibonacci.c
fields.c analyzer: fix testsuite issues seen with mingw [PR102052] 2022-02-10 09:13:46 -05:00
file-1.c analyzer: associate -Wanalyzer-double-fclose with CWE-1341 2022-06-16 17:27:08 -04:00
file-2.c analyzer: Fix tests for glibc 2.35 [PR101081] 2022-02-08 21:36:21 -05:00
file-3.c
file-meaning-1.c diagnostics: add SARIF output format 2022-06-02 15:40:22 -04:00
file-paths-1.c analyzer: Fix tests for glibc 2.35 [PR101081] 2022-02-08 21:36:21 -05:00
file-pr58237.c analyzer: Fix tests for glibc 2.35 [PR101081] 2022-02-08 21:36:21 -05:00
file-uninit-1.c analyzer: fix missing -Wanalyzer-use-of-uninitialized-value on special-cased functions [PR106573] 2022-08-09 19:58:54 -04:00
first-field-1.c
first-field-2.c
fread-1.c analyzer: reimplement -Wanalyzer-use-of-uninitialized-value [PR95006 et al] 2021-07-15 15:07:07 -04:00
fread-2.c analyzer: fix ICE on memset of untracked region [PR105057] 2022-03-26 09:05:30 -04:00
function-ptr-1.c
function-ptr-2.c analyzer: Fix PR analyzer/101980 2021-08-21 10:33:54 +05:30
function-ptr-3.c
function-ptr-4.c analyzer: detect and analyze calls via function pointer 2021-08-18 23:10:31 +05:30
function-ptr-5.c New warning: -Wanalyzer-jump-through-null [PR105947] 2022-08-05 19:45:41 -04:00
getchar-1.c
gzio-2.c
gzio-3.c analyzer: fix testsuite issues seen with mingw [PR102052] 2022-02-10 09:13:46 -05:00
gzio-3a.c analyzer: fix testsuite issues seen with mingw [PR102052] 2022-02-10 09:13:46 -05:00
gzio.c
infinite-recursion.c
init.c
inlining-1-multiline.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
inlining-1-no-undo.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
inlining-1.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
inlining-2-multiline.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
inlining-2.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
inlining-3-multiline.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
inlining-3.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
inlining-4-multiline.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
inlining-4.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
inlining-5-multiline.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
inlining-5.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
inlining-6-multiline.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
inlining-6.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
inlining-7-multiline.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
inlining-7.c analyzer: fix up paths for inlining (PR analyzer/105962) 2022-06-15 17:44:14 -04:00
invalid-shift-1.c
leak-2.c
leak-3.c analyzer: fix false leak seen in Juliet 1.3 [PR102471] 2021-12-01 18:20:34 -05:00
leak-4.c analyzer: more test coverage of leak detection [PR99771] 2022-03-08 14:16:48 -05:00
loop-0-up-to-n-by-1-with-iter-obj.c analyzer: tweak priority of callstrings in worklist::key_t::cmp 2021-06-11 09:30:33 -04:00
loop-0-up-to-n-by-1.c
loop-2.c
loop-2a.c
loop-3.c
loop-4.c
loop-n-down-to-1-by-1.c
loop-start-down-to-end-by-1.c
loop-start-down-to-end-by-step.c
loop-start-to-end-by-step.c
loop-start-up-to-end-by-1.c
loop.c
malloc-1.c analyzer: fixes to free of non-heap detection [PR104560] 2022-02-16 18:48:30 -05:00
malloc-2.c
malloc-3.c
malloc-4.c
malloc-5.c
malloc-callbacks.c analyzer: fixes to free of non-heap detection [PR104560] 2022-02-16 18:48:30 -05:00
malloc-dce.c
malloc-dedupe-1.c
malloc-in-loop.c
malloc-ipa-1.c
malloc-ipa-2.c
malloc-ipa-3.c
malloc-ipa-4.c
malloc-ipa-5.c
malloc-ipa-6.c
malloc-ipa-7.c
malloc-ipa-8-double-free.c
malloc-ipa-8-lto-a.c
malloc-ipa-8-lto-b.c
malloc-ipa-8-lto-c.c
malloc-ipa-8-lto.h
malloc-ipa-8-unchecked.c
malloc-ipa-9.c
malloc-ipa-10.c
malloc-ipa-11.c
malloc-ipa-12.c
malloc-ipa-13.c
malloc-ipa-13a.c
malloc-macro-inline-events.c
malloc-macro-separate-events.c
malloc-macro.h
malloc-many-paths-1.c
malloc-many-paths-2.c
malloc-many-paths-3.c
malloc-meaning-1.c diagnostics: add SARIF output format 2022-06-02 15:40:22 -04:00
malloc-paths-1.c
malloc-paths-2.c
malloc-paths-3.c
malloc-paths-4.c
malloc-paths-5.c
malloc-paths-6.c
malloc-paths-7.c
malloc-paths-8.c analyzer: fixes to free of non-heap detection [PR104560] 2022-02-16 18:48:30 -05:00
malloc-paths-9.c
malloc-paths-10.c
malloc-sarif-1.c diagnostics: add SARIF output format 2022-06-02 15:40:22 -04:00
malloc-vs-local-1a.c
malloc-vs-local-1b.c
malloc-vs-local-2.c
malloc-vs-local-3.c
malloc-vs-local-4.c
many-disabled-diagnostics.c analyzer: early rejection of disabled warnings [PR104955] 2022-03-16 14:01:19 -04:00
many-unused-locals.c analyzer: add region::tracked_p to optimize state objects [PR104954] 2022-03-24 20:58:10 -04:00
memcpy-1.c analyzer: fixes to memcpy [PR103872] 2022-02-07 18:31:54 -05:00
memcpy-2.c analyzer: fix ICE in binding_cluster ctor [PR106401] 2022-07-22 19:50:37 -04:00
memset-1.c analyzer: eliminate enum binding_key [PR95006] 2021-06-30 10:27:40 -04:00
memset-2.c analyzer: fix ICE on memset of untracked region [PR105057] 2022-03-26 09:05:30 -04:00
memset-CVE-2017-18549-1.c analyzer: show region creation events for uninit warnings 2022-01-27 18:02:56 -05:00
operations.c
params-2.c
params.c
paths-1.c
paths-1a.c
paths-2.c
paths-3.c
paths-4.c
paths-5.c
paths-6.c
paths-7.c
paths-8.c analyzer: tweak priority of callstrings in worklist::key_t::cmp 2021-06-11 09:30:33 -04:00
pattern-test-1.c
pattern-test-2.c analyzer: remove add_any_constraints_from_ssa_def_stmt 2021-07-07 19:29:30 -04:00
phi-1.c analyzer: handle self-referential phis 2021-07-15 15:01:57 -04:00
phi-2.c analyzer: fix issues with phi handling 2021-07-21 17:24:08 -04:00
pointer-merging.c
pr61861.c
pr93032-mztools-signed-char.c analyzer: reduce svalue depth limit from 13 to 12 [PR103521] 2022-03-04 13:51:14 -05:00
pr93032-mztools-simplified.c
pr93032-mztools-unsigned-char.c analyzer: reduce svalue depth limit from 13 to 12 [PR103521] 2022-03-04 13:51:14 -05:00
pr93290.c
pr93352.c
pr93355-localealias-feasibility-2.c
pr93355-localealias-feasibility-3.c
pr93355-localealias-feasibility.c analyzer: reimplement -Wanalyzer-use-of-uninitialized-value [PR95006 et al] 2021-07-15 15:07:07 -04:00
pr93355-localealias-simplified.c
pr93355-localealias.c
pr93375.c
pr93382.c analyzer: add four new taint-based warnings 2021-11-13 09:27:26 -05:00
pr93457.c
pr93546.c
pr93547.c
pr93669.c
pr93695-1.c
pr93938.c
pr94047.c analyzer: show region creation events for uninit warnings 2022-01-27 18:02:56 -05:00
pr94099.c
pr94105.c
pr94362-1.c analyzer: reject ((i + 1 > 0) && (i < 0)) for integers [PR94362] 2022-01-20 18:43:28 -05:00
pr94362-2.c analyzer: reject ((i + 1 > 0) && (i < 0)) for integers [PR94362] 2022-01-20 18:43:28 -05:00
pr94399.c
pr94447.c
pr94458.c
pr94579.c analyzer: add regression test [PR94579] 2021-11-30 17:49:05 -05:00
pr94596.c
pr94639.c
pr94640.c
pr94688.c
pr94689.c
pr94732.c
pr94754.c
pr94839.c
pr94851-1.c
pr94851-2.c Disallow loop rotation and loop header crossing in jump threaders. 2021-10-20 07:07:35 +02:00
pr94851-3.c
pr94851-4.c
pr94858-1.c analyzer: fix false leak due to overeager state merging [PR103217] 2021-11-19 15:25:27 -05:00
pr94858-2.c
pr95000-1.c analyzer: add test coverage for PR 95000 2022-03-15 17:56:29 -04:00
pr95026.c
pr95152-4.c
pr95152-5.c
pr95240.c
pr96598.c
pr96611.c
pr96639.c analyzer: add allocation size checker [PR105900] 2022-07-02 19:07:49 +02:00
pr96642.c
pr96644.c
pr96646.c
pr96648.c
pr96650-1-notrans.c
pr96650-1-trans.c
pr96650-2-notrans.c
pr96650-2-trans.c
pr96651-1.c
pr96651-2.c
pr96653.c
pr96699.c
pr96705.c
pr96713.c testsuite: fixup pr97521.c and pr96713.c on i686-* 2022-03-29 10:36:30 +02:00
pr96764.c
pr96777.c
pr96792.c
pr96841.c analyzer: fix folding of regions involving unknown ptrs [PR103892] 2022-04-09 18:12:57 -04:00
pr96860-1.c
pr96860-2.c
pr97029.c
pr97072.c
pr97074.c
pr97130.c
pr97233.c
pr97514.c
pr97568.c
pr97608.c
pr97668.c
pr98073.c
pr98293.c
pr98564.c
pr98575-1.c
pr98580-a.c
pr98580-b.c
pr98599-a.c gimple UIDs, LTO and -fanalyzer [PR98599] 2021-04-12 21:13:40 -04:00
pr98599-b.c gimple UIDs, LTO and -fanalyzer [PR98599] 2021-04-12 21:13:40 -04:00
pr98628.c analyzer: reimplement -Wanalyzer-use-of-uninitialized-value [PR95006 et al] 2021-07-15 15:07:07 -04:00
pr98918.c
pr98969.c analyzer: fix testsuite issues seen with mingw [PR102052] 2022-02-10 09:13:46 -05:00
pr99042.c analyzer: reimplement -Wanalyzer-use-of-uninitialized-value [PR95006 et al] 2021-07-15 15:07:07 -04:00
pr99044-1.c
pr99044-2.c
pr99193-1.c analyzer: support "bifurcation"; reimplement realloc [PR99260] 2021-08-30 18:36:31 -04:00
pr99193-2.c
pr99193-3.c analyzer: support "bifurcation"; reimplement realloc [PR99260] 2021-08-30 18:36:31 -04:00
pr99269.c analyzer: add regression test [PR99269] 2021-11-30 17:49:05 -05:00
pr99716-1.c analyzer: Fix tests for glibc 2.35 [PR101081] 2022-02-08 21:36:21 -05:00
pr99716-2.c analyzer: fix testsuite issues seen with mingw [PR102052] 2022-02-10 09:13:46 -05:00
pr99716-3.c
pr99771-1.c
pr99774-1.c analyzer: fix testsuite issues seen with mingw [PR102052] 2022-02-10 09:13:46 -05:00
pr99774-2.c analyzer: fix leak false +ves due to maybe-clobbered regions [PR99042,PR99774] 2021-04-08 09:46:03 -04:00
pr99886.c
pr99906.c analyzer: fix ICE on zero-arg calls passed to __attribute__((nonnull)) [PR 99906] 2021-04-05 10:51:46 -04:00
pr100011.c analyzer: fix ICE on assignment from STRING_CST when building path [PR100011] 2021-04-10 16:23:23 -04:00
pr100546.c analyzer: detect and analyze calls via function pointer 2021-08-18 23:10:31 +05:30
pr100615.c analyzer: fix missing leak after call to strsep [PR100615] 2021-05-18 12:29:58 -04:00
pr101143.c analyzer: fix ICE on malloc/alloca param type mismatch [PR101143] 2021-06-22 13:44:57 -04:00
pr101503.c analyzer: add svalue::can_have_associated_state_p [PR101503] 2021-07-19 15:44:02 -04:00
pr101547.c analyzer: show region creation events for uninit warnings 2022-01-27 18:02:56 -05:00
pr101570.c analyzer: initial implementation of asm support [PR101570] 2021-08-04 18:21:25 -04:00
pr101721.c analyzer: Fix ICE on MD builtin [PR101721] 2021-08-03 12:44:17 +02:00
pr101837.c analyzer: fix ICE when failing to reconstruct a fn ptr [PR101837] 2021-08-23 14:09:44 -04:00
pr101875.c analyzer: show region creation events for uninit warnings 2022-01-27 18:02:56 -05:00
pr101962.c analyzer: show region creation events for uninit warnings 2022-01-27 18:02:56 -05:00
pr101983-main.c analyzer: fix leak suppression at end of 'main' [PR101983] 2022-03-07 14:19:30 -05:00
pr101983-not-main.c analyzer: fix leak suppression at end of 'main' [PR101983] 2022-03-07 14:19:30 -05:00
pr102692-2.c analyzer: fix uninit false +ve due to optimized conditionals [PR102692] 2022-02-15 16:33:29 -05:00
pr102695.c analyzer: fix missing -Wanalyzer-write-to-const [PR102695] 2021-11-16 21:01:14 -05:00
pr103217-2.c analyzer: further false leak fixes due to overzealous state merging [PR103217] 2021-11-29 18:50:56 -05:00
pr103217-3.c analyzer: further false leak fixes due to overzealous state merging [PR103217] 2021-11-29 18:50:56 -05:00
pr103217-4.c analyzer: further false leak fixes due to overzealous state merging [PR103217] 2021-11-29 18:50:56 -05:00
pr103217-5.c analyzer: further false leak fixes due to overzealous state merging [PR103217] 2021-11-29 18:50:56 -05:00
pr103217.c analyzer: fix false leak due to overeager state merging [PR103217] 2021-11-19 15:25:27 -05:00
pr103526.c analyzer: add regression test for leak false +ve [PR103526] 2021-12-02 14:05:31 -05:00
pr103892.c analyzer: fix folding of regions involving unknown ptrs [PR103892] 2022-04-09 18:12:57 -04:00
pr104029.c analyzer: fix ICE in taint checker on unary ops [PR104029] 2022-01-14 17:50:37 -05:00
pr104062.c analyzer: fix ICE on realloc of zeroed memory [PR104062] 2022-01-18 15:55:12 -05:00
pr104089.c testsuite: guard usage of _Float16 in analyzer test [PR104150] 2022-01-22 10:27:45 -05:00
pr104224.c analyzer: show region creation events for uninit warnings 2022-01-27 18:02:56 -05:00
pr104308.c gimple-fold: fix further missing stmt locations [PR104308] 2022-04-25 19:34:33 -04:00
pr104369-1.c analyzer: fixes to realloc-handling [PR104369] 2022-02-03 17:46:41 -05:00
pr104369-2.c analyzer: fixes to realloc-handling [PR104369] 2022-02-03 17:46:41 -05:00
pr104417.c analyzer: fix ICE on realloc of non-heap [PR104417] 2022-02-07 18:32:47 -05:00
pr104434-const.c analyzer: handle __attribute__((const)) [PR104434] 2022-02-23 18:51:26 -05:00
pr104434-nonconst.c analyzer: handle __attribute__((const)) [PR104434] 2022-02-23 18:51:26 -05:00
pr104434.h analyzer: handle __attribute__((const)) [PR104434] 2022-02-23 18:51:26 -05:00
pr104452.c analyzer: fix hashing of bit_range_region::key_t [PR104452] 2022-02-08 21:27:12 -05:00
pr104524.c analyzer: fix ICE on cast to NULL type [PR104524] 2022-02-15 16:34:33 -05:00
pr104560-1.c analyzer: fixes to free of non-heap detection [PR104560] 2022-02-16 18:48:30 -05:00
pr104560-2.c analyzer: fixes to free of non-heap detection [PR104560] 2022-02-16 18:48:30 -05:00
pr105074.c analyzer: fix ICE with incorrect lookup of cgraph node [PR105074] 2022-03-28 20:40:16 -04:00
pr105087-1.c analyzer: ensure that we purge state when reusing a conjured_svalue [PR105087] 2022-03-28 20:41:23 -04:00
pr105087-2.c analyzer: ensure that we purge state when reusing a conjured_svalue [PR105087] 2022-03-28 20:41:23 -04:00
pr105252.c analyzer: fix ICE comparing VECTOR_CSTs [PR105252] 2022-04-14 08:50:17 -04:00
pr105365.c analyzer: fix ICEs on complex constants [PR105365,105366] 2022-04-25 19:36:37 -04:00
pr105366.c analyzer: fix ICEs on complex constants [PR105365,105366] 2022-04-25 19:36:37 -04:00
pr106394.c Fix handling of zero capacity regions in -Wanalyzer-allocation-size [PR106394] 2022-07-22 21:46:51 +02:00
pragma-1.c
pragma-2.c analyzer: verify that -Wanalyzer-too-complex can be disabled via pragmas [PR100524] 2021-11-30 17:49:04 -05:00
putenv-1.c analyzer: new warning: -Wanalyzer-putenv-of-auto-var [PR105893] 2022-07-28 17:21:29 -04:00
realloc-1.c analyzer: fixes to free of non-heap detection [PR104560] 2022-02-16 18:48:30 -05:00
realloc-2.c analyzer: support "bifurcation"; reimplement realloc [PR99260] 2021-08-30 18:36:31 -04:00
realloc-3.c analyzer: fixes to realloc-handling [PR104369] 2022-02-03 17:46:41 -05:00
realloc-4.c analyzer: fixes to realloc-handling [PR104369] 2022-02-03 17:46:41 -05:00
refcounting-1.c
rhbz1878600.c
scope-1.c
sensitive-1.c
setjmp-1.c
setjmp-2.c
setjmp-3.c
setjmp-4.c
setjmp-5.c
setjmp-6.c
setjmp-7.c
setjmp-7a.c
setjmp-8.c
setjmp-9.c
setjmp-pr93378.c
signal-1.c
signal-2.c
signal-3.c
signal-4a.c
signal-4b.c
signal-5.c
signal-6.c
signal-exit.c
signal-registration-loc.c
sigsetjmp-5.c
sigsetjmp-6.c
single-field.c
sock-1.c analyzer: fix uninit false +ve when returning structs 2021-07-26 15:25:00 -04:00
sock-2.c analyzer: fix uninit false +ve when returning structs 2021-07-26 15:25:00 -04:00
stale-frame-1.c analyzer: fix accessing wrong stack frame on interprocedural return [PR104979] 2022-03-23 17:40:29 -04:00
stdarg-1.c analyzer: associate -Wanalyzer-va-arg-type-mismatch with CWE-686 2022-06-16 17:35:16 -04:00
stdarg-2.c analyzer: implement four new warnings for <stdarg.h> misuses [PR105103] 2022-05-16 15:34:09 -04:00
stdarg-3.c analyzer: fix -Wanalyzer-va-list-exhausted false +ve on va_arg in subroutine [PR106383] 2022-07-21 17:29:26 -04:00
stdarg-fmtstring-1.c analyzer: implement four new warnings for <stdarg.h> misuses [PR105103] 2022-05-16 15:34:09 -04:00
stdarg-lto-1-a.c analyzer: implement four new warnings for <stdarg.h> misuses [PR105103] 2022-05-16 15:34:09 -04:00
stdarg-lto-1-b.c analyzer: implement four new warnings for <stdarg.h> misuses [PR105103] 2022-05-16 15:34:09 -04:00
stdarg-lto-1.h analyzer: implement four new warnings for <stdarg.h> misuses [PR105103] 2022-05-16 15:34:09 -04:00
stdarg-sentinel-1.c analyzer: implement four new warnings for <stdarg.h> misuses [PR105103] 2022-05-16 15:34:09 -04:00
stdarg-types-1.c analyzer: implement four new warnings for <stdarg.h> misuses [PR105103] 2022-05-16 15:34:09 -04:00
stdarg-types-2.c analyzer: implement four new warnings for <stdarg.h> misuses [PR105103] 2022-05-16 15:34:09 -04:00
stdarg-types-3.c analyzer: fix false +ves from -Wanalyzer-va-arg-type-mismatch on int promotion [PR106319] 2022-07-26 17:17:18 -04:00
stdarg-types-4.c analyzer: fix false +ves from -Wanalyzer-va-arg-type-mismatch on int promotion [PR106319] 2022-07-26 17:17:18 -04:00
strchr-1.c analyzer: fix missing -Wanalyzer-write-to-const [PR102695] 2021-11-16 21:01:14 -05:00
strcmp-1.c
strcpy-1.c
strcpy-2.c analyzer: fix ICE on memset of untracked region [PR105057] 2022-03-26 09:05:30 -04:00
strdup-1.c analyzer: Handle strdup builtins 2021-07-28 17:43:26 +05:30
strndup-1.c analyzer/strndup-1.c: skip on *-*-vxworks* 2022-03-29 22:47:19 -03:00
switch.c analyzer: rewrite of switch handling 2021-08-23 19:27:21 -04:00
symbolic-1.c analyzer: show region creation events for uninit warnings 2022-01-27 18:02:56 -05:00
symbolic-2.c
symbolic-3.c
symbolic-4.c
symbolic-5.c
symbolic-6.c
symbolic-7.c analyzer: reimplement -Wanalyzer-use-of-uninitialized-value [PR95006 et al] 2021-07-15 15:07:07 -04:00
symbolic-8.c analyzer: eliminate enum binding_key [PR95006] 2021-06-30 10:27:40 -04:00
symbolic-9.c analyzer: fix leak false +ve with symbolic writes [PR102208] 2022-04-07 08:33:26 -04:00
symbolic-12.c analyzer: handle repeated accesses after init of unknown size [PR105285] 2022-04-28 13:49:59 -04:00
taint-CVE-2011-2210-1.c Add __attribute__ ((tainted_args)) 2022-01-13 20:18:20 -05:00
taint-CVE-2020-13143-1.c Add __attribute__ ((tainted_args)) 2022-01-13 20:18:20 -05:00
taint-CVE-2020-13143-2.c Add __attribute__ ((tainted_args)) 2022-01-13 20:18:20 -05:00
taint-CVE-2020-13143.h Add __attribute__ ((tainted_args)) 2022-01-13 20:18:20 -05:00
taint-alloc-1.c analyzer: use tainted_allocation_size::m_mem_space [PR105017] 2022-03-23 08:37:06 -04:00
taint-alloc-2.c analyzer: add four new taint-based warnings 2021-11-13 09:27:26 -05:00
taint-alloc-3.c Add __attribute__ ((tainted_args)) 2022-01-13 20:18:20 -05:00
taint-alloc-4.c Add __attribute__ ((tainted_args)) 2022-01-13 20:18:20 -05:00
taint-alloc-5.c analyzer: add tests of boxed values [PR104943] 2022-03-18 19:20:15 -04:00
taint-divisor-1.c analyzer: fix false positives from -Wanalyzer-tainted-divisor [PR106225] 2022-07-07 15:50:26 -04:00
taint-merger.c analyzer: fix ICE when combining taint states has_ub and has_lb 2022-01-14 17:51:26 -05:00
taint-ops.c analyzer: fix ICE in taint checker on unary ops [PR104029] 2022-01-14 17:50:37 -05:00
taint-read-index-1.c analyzer: add four new taint-based warnings 2021-11-13 09:27:26 -05:00
taint-read-offset-1.c analyzer: add four new taint-based warnings 2021-11-13 09:27:26 -05:00
taint-realloc.c analyzer: fixes to realloc-handling [PR104369] 2022-02-03 17:46:41 -05:00
taint-size-1.c analyzer: fixes to memcpy [PR103872] 2022-02-07 18:31:54 -05:00
taint-size-access-attr-1.c analyzer: fix duplicates in check_for_tainted_size_arg 2022-03-10 09:02:18 -05:00
taint-write-index-1.c analyzer: add four new taint-based warnings 2021-11-13 09:27:26 -05:00
taint-write-offset-1.c analyzer: add four new taint-based warnings 2021-11-13 09:27:26 -05:00
test-setjmp.h
test-uaccess.h Add __attribute__ ((tainted_args)) 2022-01-13 20:18:20 -05:00
uninit-1.c analyzer: add more uninit test coverage 2022-06-15 17:39:42 -04:00
uninit-2.c analyzer: reimplement -Wanalyzer-use-of-uninitialized-value [PR95006 et al] 2021-07-15 15:07:07 -04:00
uninit-3.c analyzer: reimplement -Wanalyzer-use-of-uninitialized-value [PR95006 et al] 2021-07-15 15:07:07 -04:00
uninit-4.c analyzer: show region creation events for uninit warnings 2022-01-27 18:02:56 -05:00
uninit-6.c analyzer: fix uninit false positive on overlapping bindings 2021-08-23 14:01:01 -04:00
uninit-6b.c analyzer: fix uninit false positive on overlapping bindings 2021-08-23 14:01:01 -04:00
uninit-CWE-457-examples.c analyzer: more uninit test coverage 2022-02-09 17:37:39 -05:00
uninit-alloca.c analyzer: show region creation events for uninit warnings 2022-01-27 18:02:56 -05:00
uninit-pr94713.c analyzer: show region creation events for uninit warnings 2022-01-27 18:02:56 -05:00
uninit-pr94714.c analyzer: show region creation events for uninit warnings 2022-01-27 18:02:56 -05:00
uninit-pr104576.c analyzer: const functions have no side effects [PR104576] 2022-02-16 21:39:56 -05:00
uninit-pr106204.c analyzer: fix uninit false positive with -ftrivial-auto-var-init= [PR106204] 2022-07-06 07:27:45 -04:00
unknown-fns-2.c
unknown-fns-3.c
unknown-fns-4.c
unknown-fns.c
untracked-1.c analyzer: skip constant pool in -fdump-analyzer-untracked [PR testsuite/105085] 2022-03-29 17:50:48 -04:00
untracked-2.c analyzer: fix ICE on untracked decl_regions [PR106374] 2022-07-20 21:34:03 -04:00
unused-local-1.c analyzer: add region::tracked_p to optimize state objects [PR104954] 2022-03-24 20:58:10 -04:00
use-after-free-2.c analyzer: reimplement -Wanalyzer-use-of-uninitialized-value [PR95006 et al] 2021-07-15 15:07:07 -04:00
use-after-free-3.c analyzer: reimplement -Wanalyzer-use-of-uninitialized-value [PR95006 et al] 2021-07-15 15:07:07 -04:00
use-after-free.c
vasprintf-1.c analyzer: ensure that we purge state when reusing a conjured_svalue [PR105087] 2022-03-28 20:41:23 -04:00
vla-1.c analyzer: fixes to free of non-heap detection [PR104560] 2022-02-16 18:48:30 -05:00
write-to-const-1.c
write-to-const-2.c analyzer: add notes to write-to-const/string from access attr [PR104793] 2022-03-10 09:09:40 -05:00
write-to-function-1.c analyzer: add notes to write-to-const/string from access attr [PR104793] 2022-03-10 09:09:40 -05:00
write-to-string-literal-1.c
write-to-string-literal-2.c analyzer: add notes to write-to-const/string from access attr [PR104793] 2022-03-10 09:09:40 -05:00
write-to-string-literal-3.c analyzer: add notes to write-to-const/string from access attr [PR104793] 2022-03-10 09:09:40 -05:00
write-to-string-literal-4-disabled.c analyzer: fix ICE adding note to disabled diagnostic [PR104997] 2022-03-23 08:34:49 -04:00
write-to-string-literal-4.c analyzer: add notes to write-to-const/string from access attr [PR104793] 2022-03-10 09:09:40 -05:00
write-to-string-literal-5.c analyzer: add notes to write-to-const/string from access attr [PR104793] 2022-03-10 09:09:40 -05:00
zlib-1.c
zlib-2.c
zlib-3.c analyzer: show region creation events for uninit warnings 2022-01-27 18:02:56 -05:00
zlib-4.c
zlib-5.c analyzer: fix testsuite issues seen with mingw [PR102052] 2022-02-10 09:13:46 -05:00
zlib-6.c analyzer: reimplement -Wanalyzer-use-of-uninitialized-value [PR95006 et al] 2021-07-15 15:07:07 -04:00
zlib-6a.c analyzer: reimplement -Wanalyzer-use-of-uninitialized-value [PR95006 et al] 2021-07-15 15:07:07 -04:00