Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
9baf39df74caa56696b293e763fdd7ef002e51ca
/
.
/
test
/
Analysis
/
malloc-overflow.cpp
blob: c1ac6be4b029fc087b35c1317d8b810ad64de7d8 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -analyze -analyzer-checker=experimental.security.MallocOverflow -verify %s
class
A
{
public
:
A
&
operator
<<(
const
A
&
a
);
};
void
f
()
{
A a
=
A
(),
b
=
A
();
a
<<
b
;
}