Skip to content

Commit d2dd19a

Browse files
committed
C++: It turns out __assert_fail is special (see DefaultOptions.qll) so we don't need a body here. And the body was wrong.
1 parent fe4ae7e commit d2dd19a

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/test/experimental/query-tests/Security/CWE/CWE-401/semmle/tests

1 file changed

+1
-1
lines changed

cpp/ql/test/experimental/query-tests/Security/CWE/CWE-401/semmle/tests/test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define NULL ((void*)0)
33

44
#define assert(x) if (!(x)) __assert_fail(#x,__FILE__,__LINE__)
5-
void __assert_fail(const char *assertion, const char *file, int line) { }
5+
void __assert_fail(const char *assertion, const char *file, int line);
66

77
void aFakeFailed_1(int file, int line)
88
{

0 commit comments

Comments
 (0)