diff options
author | David Malcolm <dmalcolm@redhat.com> | 2023-08-29 10:57:42 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2023-08-29 10:57:42 -0400 |
commit | f687fc1ff6d4a44db87a35e9e3be7f20425bdacc (patch) | |
tree | 597efde3e2641ea1a4b8faba643893058cbbd934 /libdecnumber/decContextSymbols.h | |
parent | d16af3ebea84749ac673db29a4124d2dc7cd369e (diff) | |
download | gcc-f687fc1ff6d4a44db87a35e9e3be7f20425bdacc.zip gcc-f687fc1ff6d4a44db87a35e9e3be7f20425bdacc.tar.gz gcc-f687fc1ff6d4a44db87a35e9e3be7f20425bdacc.tar.bz2 |
analyzer: improve strdup handling [PR105899]
gcc/analyzer/ChangeLog:
PR analyzer/105899
* kf.cc (kf_strdup::impl_call_pre): Set size of
dynamically-allocated buffer. Simulate copying the string from
the source region to the new buffer.
gcc/testsuite/ChangeLog:
PR analyzer/105899
* c-c++-common/analyzer/pr99193-2.c: Add
-Wno-analyzer-too-complex.
* gcc.dg/analyzer/strdup-1.c: Include "analyzer-decls.h".
(test_concrete_strlen): New.
(test_symbolic_strlen): New.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'libdecnumber/decContextSymbols.h')
0 files changed, 0 insertions, 0 deletions