repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bug 1879449 [wpt PR 44489] - [wptrunner] Add `infrastructure/expected-fail/` test...
[gecko.git]
/
tools
/
clang-tidy
/
test
/
clang-analyzer-unix.cstring.BadSizeArg.cpp
blob
124737c3f47dbe81573a1c044a8392f269bc3a58
1
// https://clang-analyzer.llvm.org/available_checks.html
2
3
#include
"structures.h"
4
5
void
test
()
6
{
7
char
dest
[
3
];
8
strncat
(
dest
,
"***"
,
sizeof
(
dest
));
// warning : potential buffer overflow
9
}