keyword
stringclasses
7 values
repo_name
stringlengths
8
98
file_path
stringlengths
4
244
file_extension
stringclasses
29 values
file_size
int64
0
84.1M
line_count
int64
0
1.6M
content
stringlengths
1
84.1M
language
stringclasses
14 values
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/FuzzerInternal.h
.h
5,518
183
//===- FuzzerInternal.h - Internal header for the Fuzzer --------*- C++ -* ===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/FuzzerMutate.h
.h
6,033
146
//===- FuzzerMutate.h - Internal header for the Fuzzer ----------*- C++ -* ===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/FuzzerSHA1.h
.h
950
34
//===- FuzzerSHA1.h - Internal header for the SHA1 utils --------*- C++ -* ===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/FuzzerTracePC.cpp
.cpp
12,124
340
//===- FuzzerTracePC.cpp - PC tracing--------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/FuzzerDefs.h
.h
2,366
90
//===- FuzzerDefs.h - Internal header for the Fuzzer ------------*- C++ -* ===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/FuzzerExtFunctionsDlsym.cpp
.cpp
1,639
53
//===- FuzzerExtFunctionsDlsym.cpp - Interface to external functions ------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/FuzzerMerge.cpp
.cpp
8,793
262
//===- FuzzerMerge.cpp - merging corpora ----------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/FuzzerCorpus.h
.h
6,788
218
//===- FuzzerCorpus.h - Internal header for the Fuzzer ----------*- C++ -* ===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/FuzzerExtFunctions.h
.h
1,041
36
//===- FuzzerExtFunctions.h - Interface to external functions ---*- C++ -* ===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/standalone/StandaloneFuzzTargetMain.c
.c
1,702
42
/*===- StandaloneFuzzTargetMain.c - standalone main() for fuzz targets. ---===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
C
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/afl/afl_driver.cpp
.cpp
11,187
296
//===- afl_driver.cpp - a glue between AFL and libFuzzer --------*- C++ -* ===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. //===----------------------------------------------------------...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/SimpleCmpTest.cpp
.cpp
1,329
47
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find several narrow ranges. #include <cstdint> #include <cstdlib> #include <cstring> #include <cstdio> extern int AllLines[]; bool PrintOnce(int Line) { if ...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/NthRunCrashTest.cpp
.cpp
415
19
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Crash on the N-th execution. #include <cstdint> #include <cstddef> #include <iostream> static int Counter; extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { if (Counter++ == ...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/SwapCmpTest.cpp
.cpp
844
35
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // The fuzzer must find several constants with swapped bytes. #include <cstdint> #include <cstdlib> #include <cstring> #include <cstdio> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t S...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/SimpleHashTest.cpp
.cpp
1,252
41
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // This test computes a checksum of the data (all but the last 4 bytes), // and then compares the last 4 bytes with the computed value. // A fuzzer with cmp traces is expected to defeat this check. #includ...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/DivTest.cpp
.cpp
489
21
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer: find the interesting argument for div. #include <assert.h> #include <cstdint> #include <cstring> #include <cstddef> #include <iostream> static volatile int Sink; extern "C" i...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/AFLDriverTest.cpp
.cpp
607
23
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Contains dummy functions used to avoid dependency on AFL. #include <stdint.h> #include <stdlib.h> extern "C" void __afl_manual_init() {} extern "C" int __afl_persistent_loop(unsigned int) { return 0...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/BufferOverflowOnInput.cpp
.cpp
594
24
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find the string "Hi!". #include <assert.h> #include <cstdint> #include <cstdlib> #include <cstddef> #include <iostream> static volatile bool SeedLargeBuffer; ...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/TimeoutTest.cpp
.cpp
590
27
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find the string "Hi!". #include <cstdint> #include <cstdlib> #include <cstddef> #include <iostream> static volatile int Sink; extern "C" int LLVMFuzzerTestOne...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/MemcmpTest.cpp
.cpp
1,008
32
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find a particular string. #include <cstring> #include <cstdint> #include <cstdio> #include <cstdlib> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data,...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/LoadTest.cpp
.cpp
555
23
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer: find interesting value of array index. #include <assert.h> #include <cstdint> #include <cstring> #include <cstddef> #include <iostream> static volatile int Sink; const int kAr...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/TraceMallocTest.cpp
.cpp
542
28
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Tests -trace_malloc #include <assert.h> #include <cstdint> #include <cstdlib> #include <cstddef> #include <iostream> int *Ptr; extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/OneHugeAllocTest.cpp
.cpp
694
29
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Tests OOM handling when there is a single large allocation. #include <assert.h> #include <cstdint> #include <cstdlib> #include <cstddef> #include <cstring> #include <iostream> static volatile char *Sin...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/DSOTestMain.cpp
.cpp
809
32
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Source code for a simple DSO. #include <cstdint> #include <cstdlib> #include <cstring> #include <cstdio> extern int DSO1(int a); extern int DSO2(int a); extern int DSOTestExtra(int a); static volatile...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/InitializeTest.cpp
.cpp
721
29
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Make sure LLVMFuzzerInitialize is called. #include <assert.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> static char *argv0; extern "C" int LLVM...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/ThreadedLeakTest.cpp
.cpp
457
19
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // The fuzzer should find a leak in a non-main thread. #include <cstdint> #include <cstddef> #include <thread> static volatile int *Sink; extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/SingleMemcmpTest.cpp
.cpp
470
18
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find a particular string. #include <cstring> #include <cstdint> #include <cstdio> #include <cstdlib> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data,...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/SingleStrcmpTest.cpp
.cpp
467
18
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find a particular string. #include <cstring> #include <cstdint> #include <cstdio> #include <cstdlib> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data,...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/SignedIntOverflowTest.cpp
.cpp
626
29
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Test for signed-integer-overflow. #include <assert.h> #include <cstdint> #include <cstdlib> #include <cstddef> #include <iostream> #include <climits> static volatile int Sink; static int Large = INT_MA...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/ThreadedTest.cpp
.cpp
722
27
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Threaded test for a fuzzer. The fuzzer should not crash. #include <assert.h> #include <cstdint> #include <cstddef> #include <cstring> #include <thread> extern "C" int LLVMFuzzerTestOneInput(const uint8...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/NullDerefOnEmptyTest.cpp
.cpp
479
20
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find the empty string. #include <cstdint> #include <cstdlib> #include <cstddef> #include <iostream> static volatile int *Null = 0; extern "C" int LLVMFuzzerTe...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/OutOfMemoryTest.cpp
.cpp
748
32
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Tests OOM handling. #include <assert.h> #include <cstdint> #include <cstdlib> #include <cstddef> #include <cstring> #include <iostream> #include <thread> static volatile char *SinkPtr; extern "C" int ...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/NullDerefTest.cpp
.cpp
652
27
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find the string "Hi!". #include <cstdint> #include <cstdlib> #include <cstddef> #include <iostream> static volatile int Sink; static volatile int *Null = 0; e...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/RepeatedMemcmp.cpp
.cpp
517
23
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. #include <cstring> #include <cstdint> #include <cstdio> #include <cstdlib> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { int Matches = 0; for (size_t i = 0; i + 2 < Size; ...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/DSOTestExtra.cpp
.cpp
222
12
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Source code for a simple DSO. int DSOTestExtra(int a) { if (a < 452345) return 0; return 1; }
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/EmptyTest.cpp
.cpp
285
12
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // // A fuzzer with empty target function. #include <cstdint> #include <cstdlib> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { return 0; }
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/SimpleTest.cpp
.cpp
651
28
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find the string "Hi!". #include <assert.h> #include <cstdint> #include <cstdlib> #include <cstddef> #include <iostream> static volatile int Sink; extern "C" i...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/LeakTest.cpp
.cpp
371
18
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Test with a leak. #include <cstdint> #include <cstddef> static volatile void *Sink; extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { if (Size > 0 && *Data == 'H') { Sink...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/AbsNegAndConstant64Test.cpp
.cpp
622
24
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // abs(x) < 0 and y == Const puzzle, 64-bit variant. #include <cstring> #include <cstdint> #include <cstdlib> #include <cstddef> #include <cstdio> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/StrncmpOOBTest.cpp
.cpp
566
22
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Test that libFuzzer itself does not read out of bounds. #include <assert.h> #include <cstdint> #include <cstring> #include <cstdlib> #include <cstddef> #include <iostream> static volatile int Sink; ex...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/AccumulateAllocationsTest.cpp
.cpp
527
18
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Test with a more mallocs than frees, but no leak. #include <cstdint> #include <cstddef> const int kAllocatedPointersSize = 10000; int NumAllocatedPointers = 0; int *AllocatedPointers[kAllocatedPointers...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/DSO2.cpp
.cpp
236
13
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Source code for a simple DSO. int DSO2(int a) { if (a < 3598235) return 0; return 1; } void Uncovered2() {}
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/RepeatedBytesTest.cpp
.cpp
845
30
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find repeated bytes. #include <assert.h> #include <cstdint> #include <cstdlib> #include <cstddef> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(con...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/CounterTest.cpp
.cpp
480
19
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Test for a fuzzer: must find the case where a particular basic block is // executed many times. #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { int Num =...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/ShrinkValueProfileTest.cpp
.cpp
610
23
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Test that we can find the minimal item in the corpus (3 bytes: "FUZ"). #include <cstdint> #include <cstdlib> #include <cstddef> #include <cstring> #include <cstdio> static volatile uint32_t Sink; exte...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/ShrinkControlFlowTest.cpp
.cpp
745
29
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Test that we can find the minimal item in the corpus (3 bytes: "FUZ"). #include <cstdint> #include <cstdlib> #include <cstddef> #include <cstring> #include <cstdio> static volatile int Sink; extern "C...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/OutOfMemorySingleLargeMallocTest.cpp
.cpp
629
28
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Tests OOM handling. #include <assert.h> #include <cstdint> #include <cstdlib> #include <cstddef> #include <cstring> #include <iostream> static volatile char *SinkPtr; extern "C" int LLVMFuzzerTestOneI...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/FullCoverageSetTest.cpp
.cpp
708
25
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find the string "FUZZER". #include <cstdint> #include <cstdlib> #include <cstddef> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Dat...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/SwitchTest.cpp
.cpp
1,617
59
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find the interesting switch value. #include <cstdint> #include <cstdlib> #include <cstdio> #include <cstring> #include <cstddef> static volatile int Sink; tem...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/StrstrTest.cpp
.cpp
754
29
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Test strstr and strcasestr hooks. #include <string> #include <string.h> #include <cstdint> #include <cstdio> #include <cstdlib> // Windows does not have strcasestr and memmem, so we are not testing the...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/FourIndependentBranchesTest.cpp
.cpp
614
23
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find the string "FUZZ". #include <cstdint> #include <cstdlib> #include <cstddef> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data,...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/CustomCrossOverTest.cpp
.cpp
1,745
64
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a cutom mutator. #include <assert.h> #include <cstddef> #include <cstdint> #include <cstdlib> #include <iostream> #include <random> #include <string.h> #include "FuzzerInterface.h" sta...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/SimpleThreadedTest.cpp
.cpp
694
26
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Threaded test for a fuzzer. The fuzzer should find "H" #include <assert.h> #include <cstdint> #include <cstddef> #include <cstring> #include <iostream> #include <thread> extern "C" int LLVMFuzzerTestOn...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/SingleStrncmpTest.cpp
.cpp
471
18
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find a particular string. #include <cstring> #include <cstdint> #include <cstdio> #include <cstdlib> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data,...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/TimeoutEmptyTest.cpp
.cpp
380
15
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find the empty string. #include <cstdint> #include <cstddef> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { static volatile int Ze...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/FuzzerUnittest.cpp
.cpp
28,308
739
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Avoid ODR violations (LibFuzzer is built without ASan and this test is built // with ASan) involving C++ standard library types when using libcxx. #define _LIBCPP_HAS_NO_ASAN #include "FuzzerCorpus.h" ...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/SpamyTest.cpp
.cpp
527
22
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // The test spams to stderr and stdout. #include <assert.h> #include <cstdint> #include <cstdio> #include <cstddef> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Si...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/LeakTimeoutTest.cpp
.cpp
396
18
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Test with a leak. #include <cstdint> #include <cstddef> static volatile int *Sink; extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { if (!Size) return 0; Sink = new int; ...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/Switch2Test.cpp
.cpp
852
36
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find the interesting switch value. #include <cstdint> #include <cstdlib> #include <cstdio> #include <cstring> #include <cstddef> int Switch(int a) { switch(a...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/SimpleDictionaryTest.cpp
.cpp
751
30
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. // The fuzzer must find a string based on dictionary words: // "Elvis" // "Presley" #include <cstdint> #include <cstdlib> #include <cstddef> #include <cstring> #include <io...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/CustomMutatorTest.cpp
.cpp
962
39
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a cutom mutator. #include <assert.h> #include <cstdint> #include <cstdlib> #include <cstddef> #include <iostream> #include "FuzzerInterface.h" static volatile int Sink; extern "C" int...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/StrcmpTest.cpp
.cpp
850
33
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Break through a series of strcmp. #include <cstring> #include <cstdint> #include <cstdio> #include <cstdlib> #include <cassert> bool Eq(const uint8_t *Data, size_t Size, const char *Str) { char Buff[...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/UninstrumentedTest.cpp
.cpp
284
12
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // This test should not be instrumented. #include <cstdint> #include <cstddef> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { return 0; }
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/DSO1.cpp
.cpp
236
13
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Source code for a simple DSO. int DSO1(int a) { if (a < 123456) return 0; return 1; } void Uncovered1() { }
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/CallerCalleeTest.cpp
.cpp
2,193
60
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. // Try to find the target using the indirect caller-callee pairs. #include <cstdint> #include <cstdlib> #include <cstddef> #include <cstring> #include <iostream> typedef void ...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/StrncmpTest.cpp
.cpp
798
29
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find a particular string. #include <cstring> #include <cstdint> #include <cstdio> #include <cstdlib> static volatile int sink; extern "C" int LLVMFuzzerTestOn...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/Fuzzer/test/AbsNegAndConstantTest.cpp
.cpp
588
24
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // abs(x) < 0 and y == Const puzzle. #include <cstring> #include <cstdint> #include <cstdlib> #include <cstddef> #include <cstdio> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/doctest/doctest_compatibility.h
.h
1,789
38
#ifndef DOCTEST_COMPATIBILITY #define DOCTEST_COMPATIBILITY #define DOCTEST_CONFIG_VOID_CAST_EXPRESSIONS #define DOCTEST_THREAD_LOCAL // enable single-threaded builds on XCode 6/7 - https://github.com/onqtam/doctest/issues/172 #include "doctest.h" // Catch doesn't require a semicolon after CAPTURE but doctest does #u...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/thirdparty/doctest/doctest.h
.h
321,644
7,107
// ====================================================================== lgtm [cpp/missing-header-guard] // == DO NOT MODIFY THIS FILE BY HAND - IT IS AUTO GENERATED BY CMAKE! == // ====================================================================== // // doctest.h - the lightest feature-rich C++ single-header test...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/cmake_target_include_directories/project/Foo.cpp
.cpp
344
12
// __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ (supporting code) // | | |__ | | | | | | version 3.11.2 // |_____|_____|_____|_|___| https://github.com/nlohmann/json // // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me> // SPDX-License-Identifier: MIT #includ...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/cmake_target_include_directories/project/Bar.cpp
.cpp
344
12
// __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ (supporting code) // | | |__ | | | | | | version 3.11.2 // |_____|_____|_____|_|___| https://github.com/nlohmann/json // // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me> // SPDX-License-Identifier: MIT #includ...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/cmake_target_include_directories/project/Foo.hpp
.hpp
370
13
// __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ (supporting code) // | | |__ | | | | | | version 3.11.2 // |_____|_____|_____|_|___| https://github.com/nlohmann/json // // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me> // SPDX-License-Identifier: MIT #pragma...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/cmake_target_include_directories/project/main.cpp
.cpp
416
17
// __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ (supporting code) // | | |__ | | | | | | version 3.11.2 // |_____|_____|_____|_|___| https://github.com/nlohmann/json // // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me> // SPDX-License-Identifier: MIT #includ...
C++
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/cmake_target_include_directories/project/Bar.hpp
.hpp
389
13
// __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ (supporting code) // | | |__ | | | | | | version 3.11.2 // |_____|_____|_____|_|___| https://github.com/nlohmann/json // // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me> // SPDX-License-Identifier: MIT #includ...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/nlohmann_json/tests/cmake_add_subdirectory/project/main.cpp
.cpp
416
17
// __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ (supporting code) // | | |__ | | | | | | version 3.11.2 // |_____|_____|_____|_|___| https://github.com/nlohmann/json // // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me> // SPDX-License-Identifier: MIT #includ...
C++
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/allocator.h
.h
1,588
70
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/operators.h
.h
3,986
151
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/tabulator.h
.h
3,389
102
#pragma once #include <stdlib.h> #include "isoSpec++.h" #define ISOSPEC_INIT_TABLE_SIZE 1024 namespace IsoSpec { template <typename T> class Tabulator { private: double* _masses; double* _lprobs; double* _probs; int* _confs; size_t _confs_no; public: Tabulator(T* generator, ...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/isoSpec++.h
.h
27,275
637
/*! Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. This file is part of IsoSpec. IsoSpec is free software: you can redistribute it and/or modify it under the terms of the Simplified ("2-clause") BSD licence. IsoSpec is distributed in the hope that it will be useful, but WITHOUT ANY...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/cwrapper.h
.h
5,028
141
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/dirtyAllocator.h
.h
1,409
59
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/dirtyAllocator.cpp
.cpp
1,555
55
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
C++
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/allocator.cpp
.cpp
1,217
51
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
C++
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/platform.h
.h
4,255
127
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/misc.h
.h
3,353
141
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/mman.h
.h
1,684
68
/* * NOLINT(legal/copyright) - the original authors did not slap a (C) notice in here, * for whatever reason, and I'm in no position to do that for them. * * sys/mman.h * mman-win32 * * This file has been included as a part of IsoSpec project, under a MIT licence. It * comes from the repository: * * https://g...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/conf.h
.h
659
26
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/misc.cpp
.cpp
1,866
69
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
C++
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/fasta.cpp
.cpp
16,693
316
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
C++
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/summator.h
.h
2,319
119
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/isoSpec++.cpp
.cpp
27,063
943
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
C++
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/marginalTrek++.cpp
.cpp
18,300
649
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
C++
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/element_tables.cpp
.cpp
55,020
2,993
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
C++
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/isoMath.h
.h
2,736
88
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/btrd.h
.h
5,984
207
/* This file was taken from Boost, as permitted by Boost licence, * with slight modifications. The reason is: we don't want to introduce * dependency on the whole Boost just for this one thing. * * Source: boost random/binomial_distribution.hpp header file, at version 1.71 * * Copyright Steven Watanabe 2010 * Di...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/isoMath.cpp
.cpp
3,612
164
/* * This file has been released into public domain by John D. Cook * and is used here with some slight modifications (which are hereby * also released into public domain), * * This file is part of IsoSpec. */ // NOLINT(legal/copyright) #include <cmath> #include <cstdlib> #include "isoMath.h" #include...
C++
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/fixedEnvelopes.cpp
.cpp
17,964
598
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
C++
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/element_tables.h
.h
1,617
49
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/fixedEnvelopes.h
.h
6,588
205
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
Unknown
3D
OpenMS/OpenMS
src/openms/extern/IsoSpec/IsoSpec/unity-build.cpp
.cpp
1,514
41
/* * Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek. * * This file is part of IsoSpec. * * IsoSpec is free software: you can redistribute it and/or modify * it under the terms of the Simplified ("2-clause") BSD licence. * * IsoSpec is distributed in the hope that it will be useful, * but ...
C++