mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
The configuration in `DefaultOptions.qll` assumed that a call to any top-level function named `error` would exit the program. This is not true. The assumption was probably about `error(3)`, which is a GNU extension. It only exits if its first argument it not 0. Furthermore, projects such as openssh may define their own function named `error` with different behaviour. Because the GNU `error` function is non-standard, it's perfectly fine to shadow it with a project-specific definition. This change removes two FPs from `PointlessComparison.qll` on https://github.com/openssh/openssh-portable.
31 lines
1.8 KiB
Plaintext
31 lines
1.8 KiB
Plaintext
| file://:0:0:0:0 | operator= | __va_list_tag::operator= | returns |
|
|
| file://:0:0:0:0 | operator= | __va_list_tag::operator= | returns |
|
|
| test.cpp:1:6:1:9 | exit | exit | exits |
|
|
| test.cpp:2:6:2:10 | _exit | _exit | exits |
|
|
| test.cpp:3:6:3:10 | abort | abort | exits |
|
|
| test.cpp:4:6:4:10 | error | error | returns |
|
|
| test.cpp:5:6:5:18 | __assert_fail | __assert_fail | exits |
|
|
| test.cpp:7:6:7:12 | longjmp | longjmp | exits |
|
|
| test.cpp:8:6:8:15 | DoesReturn | DoesReturn | returns |
|
|
| test.cpp:9:6:9:18 | DoesNotReturn | DoesNotReturn | exits |
|
|
| test.cpp:13:8:13:11 | exit | MyStuff::exit | returns |
|
|
| test.cpp:14:8:14:12 | _exit | MyStuff::_exit | returns |
|
|
| test.cpp:15:8:15:12 | abort | MyStuff::abort | returns |
|
|
| test.cpp:16:8:16:12 | error | MyStuff::error | returns |
|
|
| test.cpp:17:8:17:20 | __assert_fail | MyStuff::__assert_fail | returns |
|
|
| test.cpp:18:8:18:14 | longjmp | MyStuff::longjmp | returns |
|
|
| test.cpp:19:8:19:17 | DoesReturn | MyStuff::DoesReturn | returns |
|
|
| test.cpp:20:8:20:20 | DoesNotReturn | MyStuff::DoesNotReturn | exits |
|
|
| test.cpp:23:7:23:7 | operator= | MyClass::operator= | returns |
|
|
| test.cpp:23:7:23:7 | operator= | MyClass::operator= | returns |
|
|
| test.cpp:25:8:25:11 | exit | MyClass::exit | returns |
|
|
| test.cpp:26:8:26:12 | _exit | MyClass::_exit | returns |
|
|
| test.cpp:27:8:27:12 | abort | MyClass::abort | returns |
|
|
| test.cpp:28:8:28:12 | error | MyClass::error | returns |
|
|
| test.cpp:29:8:29:20 | __assert_fail | MyClass::__assert_fail | returns |
|
|
| test.cpp:30:8:30:14 | longjmp | MyClass::longjmp | returns |
|
|
| test.cpp:31:8:31:17 | DoesReturn | MyClass::DoesReturn | returns |
|
|
| test.cpp:32:8:32:20 | DoesNotReturn | MyClass::DoesNotReturn | exits |
|
|
| test.ms.cpp:1:6:1:17 | MsDoesReturn | MsDoesReturn | returns |
|
|
| test.ms.cpp:2:27:2:41 | MsDoesNotReturn | MsDoesNotReturn | exits |
|