target_id
stringlengths
16
51
project
stringclasses
15 values
level
stringclasses
5 values
target_file
stringclasses
29 values
target_line
int64
34
10.6k
url
stringclasses
15 values
commit
stringclasses
15 values
patch
stringlengths
306
1.06k
dockerfile
stringclasses
15 values
fuzzing_harness
stringclasses
15 values
build_script
stringclasses
15 values
harness_name
stringclasses
4 values
realistic_context
stringlengths
302k
468k
realistic_call_paths
stringlengths
2
19.1k
exiv2::src:xmp.cpp:587
exiv2
easy
src/xmp.cpp
587
https://github.com/Exiv2/exiv2
66c3cda1835248df8ece24464b4546314d0233a7
diff --git a/src/xmp.cpp b/src/xmp.cpp index 39e7610ef..aa09c361b 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -1,3 +1,5 @@ +#include <stdio.h> +#include <cstdlib> // SPDX-License-Identifier: GPL-2.0-or-later // included header files @@ -583,8 +585,11 @@ static XMP_Status nsDumper(void* refCon, XMP_StringPtr buffe...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
#include <exiv2/exiv2.hpp> #include <cassert> #include <iomanip> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { data = (const uint8_t*)"EXAMPLE_INPUT_1"; size = strlen((const char*)data); // Invalid files generate a lot of warnings, so switch off logging. Exiv2...
#!/bin/bash -eu # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
instrumented_fuzzer.cpp
<code> [start of src:image.cpp] // SPDX-License-Identifier: GPL-2.0-or-later // included header files #include "image.hpp" #include "config.h" #include "enforce.hpp" #include "error.hpp" #include "futils.hpp" #include "image_int.hpp" #include "safe_op.hpp" #include "slice.hpp" #ifdef EXV_ENABLE_BMFF #include "bmffim...
[]
exiv2::src:xmp.cpp:839
exiv2
easy
src/xmp.cpp
839
https://github.com/Exiv2/exiv2
66c3cda1835248df8ece24464b4546314d0233a7
diff --git a/src/xmp.cpp b/src/xmp.cpp index 39e7610ef..79e1bdf82 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -1,3 +1,5 @@ +#include <stdio.h> +#include <cstdlib> // SPDX-License-Identifier: GPL-2.0-or-later // included header files @@ -835,8 +837,11 @@ int XmpParser::encode(std::string& xmpPacket, const XmpData&...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
#include <exiv2/exiv2.hpp> #include <cassert> #include <iomanip> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { data = (const uint8_t*)"EXAMPLE_INPUT_1"; size = strlen((const char*)data); // Invalid files generate a lot of warnings, so switch off logging. Exiv2...
#!/bin/bash -eu # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
instrumented_fuzzer.cpp
<code> [start of include:exiv2:basicio.hpp] // SPDX-License-Identifier: GPL-2.0-or-later #ifndef BASICIO_HPP_ #define BASICIO_HPP_ // ***************************************************************************** #include "exiv2lib_export.h" // included header files #include "error.hpp" #include "types.hpp" // + sta...
[ [ { "file": "instrumented_fuzzer.cpp", "function": "LLVMFuzzerTestOneInput" }, { "file": "src/pngimage.cpp", "class": "PngImage", "function": "writeMetadata" }, { "file": "src/pngimage.cpp", "class": "PngImage", "function": "doWriteMetadata" },...
exiv2::src:xmp.cpp:112
exiv2
easy
src/xmp.cpp
112
https://github.com/Exiv2/exiv2
66c3cda1835248df8ece24464b4546314d0233a7
diff --git a/src/xmp.cpp b/src/xmp.cpp index 39e7610ef..94befe0e3 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -1,3 +1,5 @@ +#include <stdio.h> +#include <cstdlib> // SPDX-License-Identifier: GPL-2.0-or-later // included header files @@ -109,6 +111,8 @@ class XMLValidator { } if (haserror_) { + fp...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
#include <exiv2/exiv2.hpp> #include <cassert> #include <iomanip> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { data = (const uint8_t*)"EXAMPLE_INPUT_1"; size = strlen((const char*)data); // Invalid files generate a lot of warnings, so switch off logging. Exiv2...
#!/bin/bash -eu # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
instrumented_fuzzer.cpp
<code> [start of include:exiv2:basicio.hpp] // SPDX-License-Identifier: GPL-2.0-or-later #ifndef BASICIO_HPP_ #define BASICIO_HPP_ // ***************************************************************************** #include "exiv2lib_export.h" // included header files #include "error.hpp" #include "types.hpp" // + sta...
[ [ { "file": "instrumented_fuzzer.cpp", "function": "LLVMFuzzerTestOneInput" }, { "file": "src/jpgimage.cpp", "class": "JpegBase", "function": "printStructure" }, { "file": "src/jpgimage.cpp", "class": "JpegBase", "function": "readMetadata" }, ...
exiv2::src:xmp.cpp:613
exiv2
easy
src/xmp.cpp
613
https://github.com/Exiv2/exiv2
66c3cda1835248df8ece24464b4546314d0233a7
diff --git a/src/xmp.cpp b/src/xmp.cpp index 39e7610ef..4b24192ca 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -1,3 +1,5 @@ +#include <stdio.h> +#include <cstdlib> // SPDX-License-Identifier: GPL-2.0-or-later // included header files @@ -609,8 +611,11 @@ void XmpParser::registeredNamespaces(Exiv2::Dictionary& dict...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
#include <exiv2/exiv2.hpp> #include <cassert> #include <iomanip> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { data = (const uint8_t*)"EXAMPLE_INPUT_1"; size = strlen((const char*)data); // Invalid files generate a lot of warnings, so switch off logging. Exiv2...
#!/bin/bash -eu # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
instrumented_fuzzer.cpp
<code> [start of app:exiv2.cpp] // SPDX-License-Identifier: GPL-2.0-or-later #include <exiv2/exiv2.hpp> // include local header files which are not part of libexiv2 #include "actions.hpp" #include "app_utils.hpp" #include "exiv2app.hpp" #include "convert.hpp" #include "getopt.hpp" #include "i18n.h" // NLS support. ...
[]
exiv2::src:xmp.cpp:497
exiv2
easy
src/xmp.cpp
497
https://github.com/Exiv2/exiv2
66c3cda1835248df8ece24464b4546314d0233a7
diff --git a/src/xmp.cpp b/src/xmp.cpp index 39e7610ef..7a473408a 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -1,3 +1,5 @@ +#include <stdio.h> +#include <cstdlib> // SPDX-License-Identifier: GPL-2.0-or-later // included header files @@ -493,8 +495,11 @@ void XmpData::eraseFamily(XmpData::iterator& pos) { std::...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
#include <exiv2/exiv2.hpp> #include <cassert> #include <iomanip> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { data = (const uint8_t*)"EXAMPLE_INPUT_1"; size = strlen((const char*)data); // Invalid files generate a lot of warnings, so switch off logging. Exiv2...
#!/bin/bash -eu # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
instrumented_fuzzer.cpp
<code> [start of include:exiv2:xmp_exiv2.hpp] // SPDX-License-Identifier: GPL-2.0-or-later #ifndef XMP_HPP_ #define XMP_HPP_ // ***************************************************************************** #include "exiv2lib_export.h" // included header files #include "metadatum.hpp" #include "properties.hpp" // **...
[]
exiv2::src:xmp.cpp:856
exiv2
easy
src/xmp.cpp
856
https://github.com/Exiv2/exiv2
66c3cda1835248df8ece24464b4546314d0233a7
diff --git a/src/xmp.cpp b/src/xmp.cpp index 39e7610ef..65bf0b50f 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -1,3 +1,5 @@ +#include <stdio.h> +#include <cstdlib> // SPDX-License-Identifier: GPL-2.0-or-later // included header files @@ -852,8 +854,11 @@ int XmpParser::encode(std::string& xmpPacket, const XmpData&...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
#include <exiv2/exiv2.hpp> #include <cassert> #include <iomanip> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { data = (const uint8_t*)"EXAMPLE_INPUT_1"; size = strlen((const char*)data); // Invalid files generate a lot of warnings, so switch off logging. Exiv2...
#!/bin/bash -eu # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
instrumented_fuzzer.cpp
<code> [start of include:exiv2:basicio.hpp] // SPDX-License-Identifier: GPL-2.0-or-later #ifndef BASICIO_HPP_ #define BASICIO_HPP_ // ***************************************************************************** #include "exiv2lib_export.h" // included header files #include "error.hpp" #include "types.hpp" // + sta...
[ [ { "file": "instrumented_fuzzer.cpp", "function": "LLVMFuzzerTestOneInput" }, { "file": "src/pngimage.cpp", "class": "PngImage", "function": "writeMetadata" }, { "file": "src/pngimage.cpp", "class": "PngImage", "function": "doWriteMetadata" },...
exiv2::src:xmp.cpp:747
exiv2
unreachable
src/xmp.cpp
747
https://github.com/Exiv2/exiv2
66c3cda1835248df8ece24464b4546314d0233a7
diff --git a/src/xmp.cpp b/src/xmp.cpp index 39e7610ef..a928e7451 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -1,3 +1,5 @@ +#include <stdio.h> +#include <cstdlib> // SPDX-License-Identifier: GPL-2.0-or-later // included header files @@ -744,6 +746,8 @@ int XmpParser::decode(XmpData& xmpData, const std::string& xm...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
#include <exiv2/exiv2.hpp> #include <cassert> #include <iomanip> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { data = (const uint8_t*)"EXAMPLE_INPUT_1"; size = strlen((const char*)data); // Invalid files generate a lot of warnings, so switch off logging. Exiv2...
#!/bin/bash -eu # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
instrumented_fuzzer.cpp
<code> [start of include:exiv2:basicio.hpp] // SPDX-License-Identifier: GPL-2.0-or-later #ifndef BASICIO_HPP_ #define BASICIO_HPP_ // ***************************************************************************** #include "exiv2lib_export.h" // included header files #include "error.hpp" #include "types.hpp" // + sta...
[ [ { "file": "instrumented_fuzzer.cpp", "function": "LLVMFuzzerTestOneInput" }, { "file": "src/jpgimage.cpp", "class": "JpegBase", "function": "printStructure" }, { "file": "src/jpgimage.cpp", "class": "JpegBase", "function": "readMetadata" }, ...
exiv2::src:xmp.cpp:457
exiv2
unreachable
src/xmp.cpp
457
https://github.com/Exiv2/exiv2
66c3cda1835248df8ece24464b4546314d0233a7
diff --git a/src/xmp.cpp b/src/xmp.cpp index 39e7610ef..1c081bc5b 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -1,3 +1,5 @@ +#include <stdio.h> +#include <cstdlib> // SPDX-License-Identifier: GPL-2.0-or-later // included header files @@ -454,6 +456,8 @@ void XmpData::sortByKey() { } XmpData::const_iterator Xmp...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
#include <exiv2/exiv2.hpp> #include <cassert> #include <iomanip> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { data = (const uint8_t*)"EXAMPLE_INPUT_1"; size = strlen((const char*)data); // Invalid files generate a lot of warnings, so switch off logging. Exiv2...
#!/bin/bash -eu # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
instrumented_fuzzer.cpp
<code> [start of src:cr2image.cpp] // SPDX-License-Identifier: GPL-2.0-or-later // included header files #include "cr2image.hpp" #include "config.h" #include "cr2header_int.hpp" #include "error.hpp" #include "futils.hpp" #include "image.hpp" #include "tiffcomposite_int.hpp" #include "tiffimage_int.hpp" #include <arr...
[]
exiv2::src:xmp.cpp:90
exiv2
unreachable
src/xmp.cpp
90
https://github.com/Exiv2/exiv2
66c3cda1835248df8ece24464b4546314d0233a7
diff --git a/src/xmp.cpp b/src/xmp.cpp index 39e7610ef..c52568159 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -1,3 +1,5 @@ +#include <stdio.h> +#include <cstdlib> // SPDX-License-Identifier: GPL-2.0-or-later // included header files @@ -87,6 +89,8 @@ class XMLValidator { #endif // If this is the first error...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
#include <exiv2/exiv2.hpp> #include <cassert> #include <iomanip> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { data = (const uint8_t*)"EXAMPLE_INPUT_1"; size = strlen((const char*)data); // Invalid files generate a lot of warnings, so switch off logging. Exiv2...
#!/bin/bash -eu # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
instrumented_fuzzer.cpp
<code> [start of include:exiv2:basicio.hpp] // SPDX-License-Identifier: GPL-2.0-or-later #ifndef BASICIO_HPP_ #define BASICIO_HPP_ // ***************************************************************************** #include "exiv2lib_export.h" // included header files #include "error.hpp" #include "types.hpp" // + sta...
[]
exiv2::src:xmp.cpp:133
exiv2
unreachable
src/xmp.cpp
133
https://github.com/Exiv2/exiv2
66c3cda1835248df8ece24464b4546314d0233a7
diff --git a/src/xmp.cpp b/src/xmp.cpp index 39e7610ef..47a47aabb 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -1,3 +1,5 @@ +#include <stdio.h> +#include <cstdlib> // SPDX-License-Identifier: GPL-2.0-or-later // included header files @@ -130,6 +132,8 @@ class XMLValidator { void startNamespace(const XML_Char*...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
#include <exiv2/exiv2.hpp> #include <cassert> #include <iomanip> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { data = (const uint8_t*)"EXAMPLE_INPUT_1"; size = strlen((const char*)data); // Invalid files generate a lot of warnings, so switch off logging. Exiv2...
#!/bin/bash -eu # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
instrumented_fuzzer.cpp
<code> [start of include:exiv2:basicio.hpp] // SPDX-License-Identifier: GPL-2.0-or-later #ifndef BASICIO_HPP_ #define BASICIO_HPP_ // ***************************************************************************** #include "exiv2lib_export.h" // included header files #include "error.hpp" #include "types.hpp" // + sta...
[ [ { "file": "instrumented_fuzzer.cpp", "function": "LLVMFuzzerTestOneInput" }, { "file": "src/jpgimage.cpp", "class": "JpegBase", "function": "printStructure" }, { "file": "src/jpgimage.cpp", "class": "JpegBase", "function": "readMetadata" }, ...
exiv2::src:xmp.cpp:870
exiv2
unreachable
src/xmp.cpp
870
https://github.com/Exiv2/exiv2
66c3cda1835248df8ece24464b4546314d0233a7
diff --git a/src/xmp.cpp b/src/xmp.cpp index 39e7610ef..35d75063d 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -1,3 +1,5 @@ +#include <stdio.h> +#include <cstdlib> // SPDX-License-Identifier: GPL-2.0-or-later // included header files @@ -867,6 +869,8 @@ int XmpParser::encode(std::string& xmpPacket, const XmpData& ...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
#include <exiv2/exiv2.hpp> #include <cassert> #include <iomanip> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { data = (const uint8_t*)"EXAMPLE_INPUT_1"; size = strlen((const char*)data); // Invalid files generate a lot of warnings, so switch off logging. Exiv2...
#!/bin/bash -eu # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
instrumented_fuzzer.cpp
<code> [start of include:exiv2:basicio.hpp] // SPDX-License-Identifier: GPL-2.0-or-later #ifndef BASICIO_HPP_ #define BASICIO_HPP_ // ***************************************************************************** #include "exiv2lib_export.h" // included header files #include "error.hpp" #include "types.hpp" // + sta...
[ [ { "file": "instrumented_fuzzer.cpp", "function": "LLVMFuzzerTestOneInput" }, { "file": "src/pngimage.cpp", "class": "PngImage", "function": "writeMetadata" }, { "file": "src/pngimage.cpp", "class": "PngImage", "function": "doWriteMetadata" },...