<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/test/Analysis/string.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[clang][analyzer] Bring checker 'alpha.unix.cstring.NotNullTerminated' out of alpha (#113899)</title>
<updated>2024-11-27T08:41:12+00:00</updated>
<author>
<name>Balázs Kéri</name>
<email>balazs.keri@ericsson.com</email>
</author>
<published>2024-11-27T08:41:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=4dfa0216ba7849fde270f27e2358d4327fac988d'/>
<id>4dfa0216ba7849fde270f27e2358d4327fac988d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang][analyzer] Improve test and documentation in cstring NotNullTerminated checker (#112019)</title>
<updated>2024-10-16T08:17:34+00:00</updated>
<author>
<name>Balázs Kéri</name>
<email>balazs.keri@ericsson.com</email>
</author>
<published>2024-10-16T08:17:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9df8d8d05c2650b51bd4233e1759206d163f3133'/>
<id>9df8d8d05c2650b51bd4233e1759206d163f3133</id>
<content type='text'>
CStringChecker has a sub-checker alpha.unix.cstring.NotNullTerminated
which checks for invalid objects passed to string functions. The checker
and its name are not exact and more functions could be checked, this
change only adds some tests and improves documentation.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CStringChecker has a sub-checker alpha.unix.cstring.NotNullTerminated
which checks for invalid objects passed to string functions. The checker
and its name are not exact and more functions could be checked, this
change only adds some tests and improves documentation.</pre>
</div>
</content>
</entry>
<entry>
<title>[analyzer] Fix "sprintf" parameter modeling in CStringChecker</title>
<updated>2023-12-28T15:06:21+00:00</updated>
<author>
<name>Balazs Benics</name>
<email>benicsbalazs@gmail.com</email>
</author>
<published>2023-12-04T16:53:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a49cf6c14ad498244fee6026da59cfdcdad6b80c'/>
<id>a49cf6c14ad498244fee6026da59cfdcdad6b80c</id>
<content type='text'>
`CE-&gt;getCalleeDecl()` returns `VarDecl` if the callee is actually a
function pointer variable. Consequently, calling `getAsFunction()` will
return null.

To workaround the case, we should use the `CallEvent::parameters()`,
which will internally recover the function being called and do the right
thing.

Fixes #74269
Depends on "[analyzer][NFC] Prefer CallEvent over CallExpr in APIs"
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`CE-&gt;getCalleeDecl()` returns `VarDecl` if the callee is actually a
function pointer variable. Consequently, calling `getAsFunction()` will
return null.

To workaround the case, we should use the `CallEvent::parameters()`,
which will internally recover the function being called and do the right
thing.

Fixes #74269
Depends on "[analyzer][NFC] Prefer CallEvent over CallExpr in APIs"
</pre>
</div>
</content>
</entry>
<entry>
<title>[analyzer] CStringChecker: Add the forgotten test file.</title>
<updated>2018-12-19T21:51:59+00:00</updated>
<author>
<name>Artem Dergachev</name>
<email>artem.dergachev@gmail.com</email>
</author>
<published>2018-12-19T21:51:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a749d602b54296ee6d4068fe6e6bb805b204263d'/>
<id>a749d602b54296ee6d4068fe6e6bb805b204263d</id>
<content type='text'>
Differential Revision: https://reviews.llvm.org/D55873

rdar://problem/45366551

llvm-svn: 349683
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Differential Revision: https://reviews.llvm.org/D55873

rdar://problem/45366551

llvm-svn: 349683
</pre>
</div>
</content>
</entry>
</feed>
