Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Project functions overview

The following table shows data about each function in the project. The functions included in this table correspond to all functions that exist in the executables of the fuzzers. As such, there may be functions that are from third-party libraries.

For further technical details on the meaning of columns in the below table, please see the Glossary .

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Fuzzer details

Fuzzer: fuzz-read-write

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 70 21.9%
gold [1:9] 87 27.2%
yellow [10:29] 14 4.38%
greenyellow [30:49] 3 0.94%
lawngreen 50+ 145 45.4%
All colors 319 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
445 589 18 :

['Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', 'Exiv2::XmpData::operator[](std::__1::basic_string , std::__1::allocator > const&)', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc', 'Exiv2::LogMsg::handler()', 'Exiv2::LogMsg::~LogMsg()', '__cxa_end_catch', 'Exiv2::Xmpdatum::operator=(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::__list_iterator ::operator->[abi:ne180100]() const', '__cxa_begin_catch', 'Exiv2::CommentValue::comment(char const*) const', 'Exiv2::LogMsg::os()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', '__dynamic_cast', 'Exiv2::Converter::prepareXmpTarget(char const*, bool)', 'Exiv2::LogMsg::level()', 'Exiv2::ExifData::erase(std::__1::__list_iterator )', '__clang_call_terminate', 'std::__1::basic_string , std::__1::allocator >::~basic_string()']

445 589 Exiv2::Converter::cnvExifComment(charconst*,charconst*) call site: 00000 /src/exiv2/src/convert.cpp:568
410 1376 41 :

['std::__1::basic_string , std::__1::allocator >::empty[abi:ne180100]() const', 'std::__1::__format_arg_store >, char>, int, int, int, int, int, int, std::__1::basic_string , std::__1::allocator > > std::__1::make_format_args[abi:ne180100] >, char>, int, int, int, int, int, int, std::__1::basic_string , std::__1::allocator > >(int&, int&, int&, int&, int&, int&, std::__1::basic_string , std::__1::allocator >&)', 'std::__1::operator!=[abi:ne180100](std::__1::__list_iterator const&, std::__1::__list_iterator const&)', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc', 'std::__1::basic_format_string ::get[abi:ne180100]() const', 'Exiv2::LogMsg::handler()', 'Exiv2::LogMsg::~LogMsg()', 'std::__1::basic_format_string , std::__1::allocator >&>::get[abi:ne180100]() const', 'Exiv2::Value::ok() const', 'Exiv2::LogMsg::os()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', '__isoc99_sscanf', 'std::__1::back_insert_iterator , std::__1::allocator > > std::__1::back_inserter[abi:ne180100] , std::__1::allocator > >(std::__1::basic_string , std::__1::allocator >&)', 'std::__1::operator==[abi:ne180100](std::__1::__list_iterator const&, std::__1::__list_iterator const&)', 'std::__1::basic_string , std::__1::allocator >::operator=[abi:ne180100](std::__1::basic_string , std::__1::allocator >&&)', 'std::__1::basic_string , std::__1::allocator >::size[abi:ne180100]() const', '_ZNSt3__117basic_format_argsINS_20basic_format_contextINS_20back_insert_iteratorINS_8__format15__output_bufferIcEEEEcEEEC2B8ne180100IJdEEERKNS_18__format_arg_storeIS7_JDpT_EEE', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'Exiv2::ExifData::end()', 'Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', 'std::__1::tuple_element<1ul, std::__1::pair >::type&& std::__1::get[abi:ne180100]<1ul, int, int>(std::__1::pair &&)', 'std::__1::basic_string , std::__1::allocator >::c_str[abi:ne180100]() const', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] , std::__1::allocator >(std::__1::basic_ostream >&, std::__1::basic_string , std::__1::allocator > const&)', 'Exiv2::XmpData::operator[](std::__1::basic_string , std::__1::allocator > const&)', '_ZNSt3__112__vformat_toB8ne180100INS_20back_insert_iteratorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEcNS1_INS_8__format15__output_bufferIcEEEEQ15output_iteratorIT_RKT0_EEESD_SD_NS_17basic_string_viewISE_NS3_ISE_EEEENS_17basic_format_argsINS_20basic_format_contextIT1_SE_EEEE', '_ZNSt3__117basic_format_argsINS_20basic_format_contextINS_20back_insert_iteratorINS_8__format15__output_bufferIcEEEEcEEEC2B8ne180100IJiiiiiiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEERKNS_18__format_arg_storeIS7_JDpT_EEE', 'std::__1::tuple_element<0ul, std::__1::pair >::type&& std::__1::get[abi:ne180100]<0ul, int, int>(std::__1::pair &&)', 'Exiv2::Xmpdatum::operator=(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::__list_iterator ::operator->[abi:ne180100]() const', 'std::__1::__format_arg_store >, char>, double> std::__1::make_format_args[abi:ne180100] >, char>, double>(double&)', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:ne180100] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, std::__1::basic_string , std::__1::allocator > const&)', 'Exiv2::ExifKey::~ExifKey()', 'std::__1::basic_string , std::__1::allocator >::resize[abi:ne180100](unsigned long)', 'std::__1::basic_string , std::__1::allocator >::basic_string[abi:ne180100]()', 'Exiv2::ExifKey::ExifKey(std::__1::basic_string , std::__1::allocator > const&)', 'Exiv2::Converter::prepareXmpTarget(char const*, bool)', 'Exiv2::LogMsg::level()', 'Exiv2::ExifData::erase(std::__1::__list_iterator )', 'long Exiv2::stringTo (std::__1::basic_string , std::__1::allocator > const&, bool&)', 'Exiv2::ExifData::findKey(Exiv2::ExifKey const&)', 'bool std::__1::operator==[abi:ne180100] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator > const&, char const*)']

410 1376 Exiv2::Converter::cnvExifDate(charconst*,charconst*) call site: 00000 /src/exiv2/src/convert.cpp:613
335 694 2 :

['Exiv2::QuickTimeVideo::audioDescDecoder()', 'Exiv2::QuickTimeVideo::imageDescDecoder()']

339 719 Exiv2::QuickTimeVideo::sampleDesc(unsignedlong) call site: 00000 /src/exiv2/src/quicktimevideo.cpp:1183
315 1778 36 :

['_ZNSt3__14pairIjjEC2B8ne180100IRiiTnNS_9enable_ifIXclsr10_CheckArgsE17__enable_implicitIT_T0_EEEiE4typeELi0EEEOS5_OS6_', 'std::__1::basic_ostringstream , std::__1::allocator >::~basic_ostringstream()', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc', '_ZNSt3__117basic_format_argsINS_20basic_format_contextINS_20back_insert_iteratorINS_8__format15__output_bufferIcEEEEcEEEC2B8ne180100IJiiiiiiEEERKNS_18__format_arg_storeIS7_JDpT_EEE', 'Exiv2::LogMsg::handler()', 'Exiv2::LogMsg::~LogMsg()', 'Exiv2::Value::ok() const', 'std::__1::basic_format_string ::get[abi:ne180100]() const', 'Exiv2::LogMsg::os()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', 'std::__1::to_string(int)', 'std::__1::__wrap_iter ::operator->[abi:ne180100]() const', 'std::__1::back_insert_iterator , std::__1::allocator > > std::__1::back_inserter[abi:ne180100] , std::__1::allocator > >(std::__1::basic_string , std::__1::allocator >&)', 'Exiv2::Exifdatum::operator=(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_format_string ::get[abi:ne180100]() const', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '__clang_call_terminate', 'std::__1::__format_arg_store >, char>, int, int, int, int, int, int> std::__1::make_format_args[abi:ne180100] >, char>, int, int, int, int, int, int>(int&, int&, int&, int&, int&, int&)', 'Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', '_ZNSt3__117basic_format_argsINS_20basic_format_contextINS_20back_insert_iteratorINS_8__format15__output_bufferIcEEEEcEEEC2B8ne180100IJiiiEEERKNS_18__format_arg_storeIS7_JDpT_EEE', '_ZNSt3__112__vformat_toB8ne180100INS_20back_insert_iteratorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEcNS1_INS_8__format15__output_bufferIcEEEEQ15output_iteratorIT_RKT0_EEESD_SD_NS_17basic_string_viewISE_NS3_ISE_EEEENS_17basic_format_argsINS_20basic_format_contextIT1_SE_EEEE', 'TXMPUtils , std::__1::allocator > >::ConvertToDate(std::__1::basic_string , std::__1::allocator > const&, XMP_DateTime*)', 'std::__1::basic_ostringstream , std::__1::allocator >::str[abi:ne180100]() const &', '__cxa_end_catch', '__cxa_begin_catch', 'Exiv2::Converter::prepareExifTarget(char const*, bool)', 'std::__1::basic_string , std::__1::allocator >::basic_string[abi:ne180100]()', 'TXMPUtils , std::__1::allocator > >::ConvertToLocalTime(XMP_DateTime*)', 'Exiv2::LogMsg::level()', 'XMP_Error::GetErrMsg() const', 'Exiv2::operator<<(std::__1::basic_ostream >&, std::__1::pair const&)', 'Exiv2::ExifData::operator[](std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::__format_arg_store >, char>, int, int, int> std::__1::make_format_args[abi:ne180100] >, char>, int, int, int>(int&, int&, int&)', 'std::__1::basic_ostringstream , std::__1::allocator >::basic_ostringstream[abi:ne180100]()', 'Exiv2::XmpData::erase(std::__1::__wrap_iter )', 'bool std::__1::operator==[abi:ne180100] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator > const&, char const*)']

315 1778 Exiv2::Converter::cnvXmpDate(charconst*,charconst*) call site: 00000 /src/exiv2/src/convert.cpp:906
299 441 19 :

['Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', 'Exiv2::XmpData::operator[](std::__1::basic_string , std::__1::allocator > const&)', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc', 'Exiv2::LogMsg::handler()', 'Exiv2::LogMsg::~LogMsg()', 'Exiv2::IptcData::end()', 'Exiv2::Xmpdatum::operator=(std::__1::basic_string , std::__1::allocator > const&)', 'Exiv2::Value::ok() const', 'Exiv2::LogMsg::os()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', 'bool std::__1::operator!=[abi:ne180100] (std::__1::__wrap_iter const&, std::__1::__wrap_iter const&)', 'Exiv2::IptcData::erase(std::__1::__wrap_iter )', 'Exiv2::convertStringCharset(std::__1::basic_string , std::__1::allocator >&, char const*, char const*)', 'Exiv2::Converter::prepareXmpTarget(char const*, bool)', 'Exiv2::LogMsg::level()', 'std::__1::__wrap_iter ::operator++[abi:ne180100]()', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'std::__1::__wrap_iter ::operator->[abi:ne180100]() const', 'bool std::__1::operator==[abi:ne180100] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator > const&, char const*)']

299 441 Exiv2::Converter::cnvIptcValue(charconst*,charconst*) call site: 00000 /src/exiv2/src/convert.cpp:1162
292 1049 22 :

['Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', 'Exiv2::IptcKey::IptcKey(std::__1::basic_string , std::__1::allocator >)', 'Exiv2::IptcKey::~IptcKey()', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc', 'Exiv2::Iptcdatum::Iptcdatum(Exiv2::IptcKey const&, Exiv2::Value const*)', 'Exiv2::LogMsg::handler()', 'Exiv2::LogMsg::~LogMsg()', 'Exiv2::Iptcdatum::setValue(std::__1::basic_string , std::__1::allocator > const&)', 'Exiv2::Value::ok() const', '(anonymous namespace)::getTextValue(std::__1::basic_string , std::__1::allocator >&, std::__1::__wrap_iter const&)', 'Exiv2::Iptcdatum::operator=(std::__1::basic_string , std::__1::allocator > const&)', 'Exiv2::LogMsg::os()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', 'std::__1::__wrap_iter ::operator->[abi:ne180100]() const', 'Exiv2::Converter::prepareIptcTarget(char const*, bool)', 'std::__1::basic_string , std::__1::allocator >::basic_string[abi:ne180100]()', 'Exiv2::LogMsg::level()', 'Exiv2::IptcData::operator[](std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'Exiv2::Iptcdatum::~Iptcdatum()', 'Exiv2::XmpData::erase(std::__1::__wrap_iter )', 'Exiv2::IptcData::add(Exiv2::Iptcdatum const&)']

292 1049 Exiv2::Converter::cnvXmpValueToIptc(charconst*,charconst*) call site: 00000 /src/exiv2/src/convert.cpp:1190
266 266 1 :

['Exiv2::RiffVideo::readAviHeader()']

266 266 Exiv2::RiffVideo::readChunk(Exiv2::RiffVideo::HeaderReaderconst&) call site: 00000 /src/exiv2/src/riffvideo.cpp:432
259 610 28 :

['Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', 'std::__1::basic_string , std::__1::allocator >::front[abi:ne180100]()', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:ne180100] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, char const*)', 'std::__1::__format_arg_store >, char>, int, double, char> std::__1::make_format_args[abi:ne180100] >, char>, int, double, char>(int&, double&, char&)', 'Exiv2::XmpData::operator[](std::__1::basic_string , std::__1::allocator > const&)', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc', '_ZNSt3__117basic_format_argsINS_20basic_format_contextINS_20back_insert_iteratorINS_8__format15__output_bufferIcEEEEcEEEC2B8ne180100IJidcEEERKNS_18__format_arg_storeIS7_JDpT_EEE', '_ZNSt3__112__vformat_toB8ne180100INS_20back_insert_iteratorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEcNS1_INS_8__format15__output_bufferIcEEEEQ15output_iteratorIT_RKT0_EEESD_SD_NS_17basic_string_viewISE_NS3_ISE_EEEENS_17basic_format_argsINS_20basic_format_contextIT1_SE_EEEE', 'Exiv2::LogMsg::handler()', 'Exiv2::LogMsg::~LogMsg()', 'Exiv2::Xmpdatum::operator=(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::__list_iterator ::operator->[abi:ne180100]() const', 'Exiv2::LogMsg::os()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', 'std::__1::back_insert_iterator , std::__1::allocator > > std::__1::back_inserter[abi:ne180100] , std::__1::allocator > >(std::__1::basic_string , std::__1::allocator >&)', 'Exiv2::ExifKey::~ExifKey()', 'std::__1::basic_format_string ::get[abi:ne180100]() const', 'Exiv2::ExifKey::ExifKey(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::basic_string[abi:ne180100]()', 'std::__1::operator==[abi:ne180100](std::__1::__list_iterator const&, std::__1::__list_iterator const&)', 'Exiv2::Converter::prepareXmpTarget(char const*, bool)', 'Exiv2::LogMsg::level()', 'Exiv2::ExifData::erase(std::__1::__list_iterator )', 'std::__1::tuple_element<0ul, std::__1::pair >::type const&& std::__1::get[abi:ne180100]<0ul, int, int>(std::__1::pair const&&)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'std::__1::tuple_element<1ul, std::__1::pair >::type const&& std::__1::get[abi:ne180100]<1ul, int, int>(std::__1::pair const&&)', 'Exiv2::ExifData::findKey(Exiv2::ExifKey const&)', 'Exiv2::ExifData::end()']

259 610 Exiv2::Converter::cnvExifGPSCoord(charconst*,charconst*) call site: 00000 /src/exiv2/src/convert.cpp:799
243 243 1 :

['Exiv2::QuickTimeVideo::keysTagDecoder(unsigned long)']

243 243 Exiv2::QuickTimeVideo::tagDecoder(Exiv2::DataBuf&,unsignedlong,unsignedlong) call site: 00000 /src/exiv2/src/quicktimevideo.cpp:681
239 1182 22 :

['Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:ne180100] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, char const*)', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] , std::__1::allocator >(std::__1::basic_ostream >&, std::__1::basic_string , std::__1::allocator > const&)', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc', 'Exiv2::XmpData::end()', 'Exiv2::LogMsg::handler()', 'Exiv2::LogMsg::~LogMsg()', 'Exiv2::Value::ok() const', 'Exiv2::Converter::prepareExifTarget(char const*, bool)', 'Exiv2::LogMsg::os()', 'Exiv2::XmpKey::~XmpKey()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', 'Exiv2::XmpData::findKey(Exiv2::XmpKey const&)', 'std::__1::__wrap_iter ::operator->[abi:ne180100]() const', 'Exiv2::Exifdatum::operator=(unsigned short const&)', 'Exiv2::Metadatum::toUint32(unsigned long) const', 'Exiv2::LogMsg::level()', 'Exiv2::ExifData::operator[](std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'Exiv2::XmpKey::XmpKey(std::__1::basic_string , std::__1::allocator > const&)', 'bool std::__1::operator!=[abi:ne180100] (std::__1::__wrap_iter const&, std::__1::__wrap_iter const&)', 'Exiv2::XmpData::erase(std::__1::__wrap_iter )']

239 1182 Exiv2::Converter::cnvXmpFlash(charconst*,charconst*) call site: 00000 /src/exiv2/src/convert.cpp:1029
227 913 16 :

['Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', 'Exiv2::XmpData::operator[](std::__1::basic_string , std::__1::allocator > const&)', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc', 'Exiv2::LogMsg::handler()', 'Exiv2::LogMsg::~LogMsg()', 'Exiv2::Value::ok() const', 'std::__1::__list_iterator ::operator->[abi:ne180100]() const', 'Exiv2::Xmpdatum::operator=(bool)', 'Exiv2::LogMsg::os()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', 'Exiv2::Metadatum::toUint32(unsigned long) const', 'Exiv2::Converter::prepareXmpTarget(char const*, bool)', 'Exiv2::LogMsg::level()', 'Exiv2::ExifData::erase(std::__1::__list_iterator )', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'Exiv2::Xmpdatum& Exiv2::Xmpdatum::operator= (unsigned int const&)']

227 913 Exiv2::Converter::cnvExifFlash(charconst*,charconst*) call site: 00000 /src/exiv2/src/convert.cpp:775
219 219 1 :

['Exiv2::RiffVideo::readInfoListChunk(unsigned long)']

219 221 Exiv2::RiffVideo::readList(Exiv2::RiffVideo::HeaderReaderconst&) call site: 00000 /src/exiv2/src/riffvideo.cpp:418

Runtime coverage analysis

Covered functions
1653
Functions that are reachable but not covered
61
Reachable functions
250
Percentage of reachable functions covered
75.6%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/exiv2/fuzz/fuzz-read-write.cpp 1
/src/exiv2/src/error.cpp 3
/src/exiv2/src/xmp.cpp 2
/src/exiv2/xmpsdk/include/client-glue/TXMPMeta.incl_cpp 3
/src/exiv2/xmpsdk/include/client-glue/WXMP_Common.hpp 1
/src/exiv2/xmpsdk/src/WXMPMeta.cpp 3
/src/exiv2/xmpsdk/src/XMPMeta.cpp 3
/src/exiv2/xmpsdk/src/XMPCore_Impl.cpp 4
/src/exiv2/xmpsdk/src/UnicodeConversions.cpp 3
/src/exiv2/xmpsdk/include/XMP_Const.h 3
/src/exiv2/xmpsdk/src/UnicodeInlines.incl_cpp 6
/src/exiv2/xmpsdk/src/XMPIterator.cpp 2
/src/exiv2/xmpsdk/src/XMPCore_Impl.hpp 3
/src/exiv2/xmpsdk/src/XMPUtils.cpp 2
/src/exiv2/src/properties.cpp 2
/src/exiv2/src/types.cpp 8
/usr/local/bin/../include/c++/v1/stdexcept 2
/src/exiv2/src/image.cpp 5
/src/exiv2/src/jpgimage.cpp 2
/src/exiv2/src/futils.cpp 1
/src/exiv2/include/exiv2/error.hpp 3
/usr/local/bin/../include/c++/v1/__exception/exception.h 1
/usr/local/bin/../include/c++/v1/sstream 2
/src/exiv2/src/cr2image.cpp 1
/src/exiv2/src/cr2header_int.cpp 2
/src/exiv2/src/tiffimage_int.cpp 3
/src/exiv2/include/exiv2/slice.hpp 9
/src/exiv2/include/exiv2/types.hpp 4
/src/exiv2/src/crwimage.cpp 1
/src/exiv2/src/crwimage_int.hpp 1
/src/exiv2/src/mrwimage.cpp 1
/src/exiv2/src/tiffimage.cpp 1
/src/exiv2/src/webpimage.cpp 1
/src/exiv2/src/basicio.cpp 1
/src/exiv2/src/enforce.hpp 2
/src/exiv2/src/rw2image.cpp 1
/src/exiv2/src/rw2image_int.cpp 1
/src/exiv2/src/orfimage.cpp 1
/src/exiv2/src/orfimage_int.cpp 2
/src/exiv2/src/pngimage.cpp 1
/src/exiv2/src/pgfimage.cpp 1
/src/exiv2/src/rafimage.cpp 1
/src/exiv2/src/epsimage.cpp 1
/src/exiv2/src/xmpsidecar.cpp 1
/src/exiv2/src/gifimage.cpp 1
/src/exiv2/src/psdimage.cpp 1
/src/exiv2/src/tgaimage.cpp 1
/src/exiv2/src/bmpimage.cpp 1
/src/exiv2/src/jp2image.cpp 1
/src/exiv2/src/quicktimevideo.cpp 1
/src/exiv2/src/asfvideo.cpp 4
/src/exiv2/src/riffvideo.cpp 1
/src/exiv2/src/matroskavideo.cpp 1
/src/exiv2/src/bmffimage.cpp 1

Fuzzer: fuzz-read-print-write

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 56 16.8%
gold [1:9] 98 29.5%
yellow [10:29] 1 0.30%
greenyellow [30:49] 5 1.50%
lawngreen 50+ 172 51.8%
All colors 332 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
254 287 16 :

['Exiv2::LogMsg::os()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', 'std::__1::basic_string_view >::copy[abi:ne180100](char*, unsigned long, unsigned long) const', 'Exiv2::MemIo::seek(long, Exiv2::BasicIo::Position)', 'Exiv2::Error::Error(Exiv2::ErrorCode)', 'Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', 'Exiv2::ul2Data(unsigned char*, unsigned int, Exiv2::ByteOrder)', '__cxa_allocate_exception', 'Exiv2::LogMsg::level()', '(anonymous namespace)::writeTemp(Exiv2::BasicIo&, unsigned char const*, unsigned long)', 'Exiv2::us2Data(unsigned char*, unsigned short, Exiv2::ByteOrder)', 'Exiv2::LogMsg::handler()', 'Exiv2::LogMsg::~LogMsg()', '__cxa_free_exception', 'std::__1::basic_string_view >::size[abi:ne180100]() const', '__cxa_throw']

254 317 (anonymousnamespace)::readWriteEpsMetadata(Exiv2::BasicIo&,std::__1::basic_string ,std::__1::allocator >&,std::__1::vector >&,bool) call site: 00000 /src/exiv2/src/epsimage.cpp:1006
246 246 1 :

['Exiv2::AsfVideo::DegradableJPEGMedia()']

254 254 Exiv2::AsfVideo::decodeBlock() call site: 00000 /src/exiv2/src/asfvideo.cpp:258
222 1182 22 :

['Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:ne180100] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, char const*)', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] , std::__1::allocator >(std::__1::basic_ostream >&, std::__1::basic_string , std::__1::allocator > const&)', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc', 'Exiv2::XmpData::end()', 'Exiv2::LogMsg::handler()', 'Exiv2::LogMsg::~LogMsg()', 'Exiv2::Value::ok() const', 'Exiv2::Converter::prepareExifTarget(char const*, bool)', 'Exiv2::LogMsg::os()', 'Exiv2::XmpKey::~XmpKey()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', 'Exiv2::XmpData::findKey(Exiv2::XmpKey const&)', 'std::__1::__wrap_iter ::operator->[abi:ne180100]() const', 'Exiv2::Exifdatum::operator=(unsigned short const&)', 'Exiv2::Metadatum::toUint32(unsigned long) const', 'Exiv2::LogMsg::level()', 'Exiv2::ExifData::operator[](std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'Exiv2::XmpKey::XmpKey(std::__1::basic_string , std::__1::allocator > const&)', 'bool std::__1::operator!=[abi:ne180100] (std::__1::__wrap_iter const&, std::__1::__wrap_iter const&)', 'Exiv2::XmpData::erase(std::__1::__wrap_iter )']

222 1182 Exiv2::Converter::cnvXmpFlash(charconst*,charconst*) call site: 00000 /src/exiv2/src/convert.cpp:1029
138 1008 30 :

['std::__1::basic_string , std::__1::allocator >::empty[abi:ne180100]() const', 'Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', 'std::__1::basic_istringstream , std::__1::allocator >::~basic_istringstream()', 'std::__1::basic_string , std::__1::allocator >::c_str[abi:ne180100]() const', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:ne180100] , std::__1::allocator >(std::__1::basic_string , std::__1::allocator >&&, char const*)', 'std::__1::basic_istream >& std::__1::operator>>[abi:ne180100] >(std::__1::basic_istream >&, char&)', 'std::__1::basic_ostringstream , std::__1::allocator >::~basic_ostringstream()', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc', 'std::__1::basic_ostringstream , std::__1::allocator >::basic_ostringstream[abi:ne180100]()', 'std::__1::basic_string , std::__1::allocator >::pop_back[abi:ne180100]()', 'Exiv2::LogMsg::handler()', 'Exiv2::LogMsg::~LogMsg()', 'std::__1::basic_ostringstream , std::__1::allocator >::str[abi:ne180100]() const &', 'Exiv2::Value::ok() const', 'std::__1::basic_istream >::operator>>(double&)', 'std::__1::basic_string , std::__1::allocator >::back[abi:ne180100]()', 'Exiv2::Converter::prepareExifTarget(char const*, bool)', 'Exiv2::LogMsg::os()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', 'std::__1::basic_ios >::bad[abi:ne180100]() const', 'std::__1::__wrap_iter ::operator->[abi:ne180100]() const', 'std::__1::basic_istringstream , std::__1::allocator >::basic_istringstream[abi:ne180100](std::__1::basic_string , std::__1::allocator > const&, unsigned int)', 'Exiv2::LogMsg::level()', 'Exiv2::Exifdatum::operator=(std::__1::basic_string , std::__1::allocator > const&)', 'Exiv2::operator<<(std::__1::basic_ostream >&, std::__1::pair const&)', 'Exiv2::ExifData::operator[](std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'std::__1::basic_ios >::eof[abi:ne180100]() const', 'Exiv2::floatToRationalCast(float)', 'Exiv2::XmpData::erase(std::__1::__wrap_iter )']

138 1008 Exiv2::Converter::cnvXmpGPSCoord(charconst*,charconst*) call site: 00000 /src/exiv2/src/convert.cpp:1099
66 66 7 :

['std::__1::basic_string , std::__1::allocator >::operator[][abi:ne180100](unsigned long)', 'std::__1::basic_string , std::__1::allocator >::basic_string[abi:ne180100]()', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc', 'ToUTF16(unsigned char const*, unsigned long, std::__1::basic_string , std::__1::allocator >*, bool)', 'std::__1::basic_string , std::__1::allocator >::swap[abi:ne180100](std::__1::basic_string , std::__1::allocator >&)', 'std::__1::basic_string , std::__1::allocator >::assign(char const*)', 'ToUTF32(unsigned char const*, unsigned long, std::__1::basic_string , std::__1::allocator >*, bool)']

78 78 XMPMeta::SerializeToBuffer(charconst**,unsignedint*,unsignedint,unsignedint,charconst*,charconst*,int)const call site: 00000 /src/exiv2/xmpsdk/src/XMPMeta-Serialize.cpp:1225
46 465 22 :

['Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', 'std::__1::basic_string , std::__1::allocator >::operator[][abi:ne180100](unsigned long)', 'std::__1::__format_arg_store >, char>, int, int, int, int> std::__1::make_format_args[abi:ne180100] >, char>, int, int, int, int>(int&, int&, int&, int&)', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc', '_ZNSt3__112__vformat_toB8ne180100INS_20back_insert_iteratorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEcNS1_INS_8__format15__output_bufferIcEEEEQ15output_iteratorIT_RKT0_EEESD_SD_NS_17basic_string_viewISE_NS3_ISE_EEEENS_17basic_format_argsINS_20basic_format_contextIT1_SE_EEEE', 'Exiv2::LogMsg::handler()', 'Exiv2::LogMsg::~LogMsg()', 'Exiv2::Value::ok() const', '_ZNSt3__117basic_format_argsINS_20basic_format_contextINS_20back_insert_iteratorINS_8__format15__output_bufferIcEEEEcEEEC2B8ne180100IJiiiiEEERKNS_18__format_arg_storeIS7_JDpT_EEE', 'Exiv2::Converter::prepareExifTarget(char const*, bool)', 'Exiv2::LogMsg::os()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', 'std::__1::__wrap_iter ::operator->[abi:ne180100]() const', 'std::__1::back_insert_iterator , std::__1::allocator > > std::__1::back_inserter[abi:ne180100] , std::__1::allocator > >(std::__1::basic_string , std::__1::allocator >&)', 'std::__1::basic_string , std::__1::allocator >::basic_string[abi:ne180100]()', 'std::__1::basic_string , std::__1::allocator >::length[abi:ne180100]() const', 'Exiv2::LogMsg::level()', 'Exiv2::Exifdatum::operator=(std::__1::basic_string , std::__1::allocator > const&)', 'Exiv2::ExifData::operator[](std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'std::__1::basic_format_string ::get[abi:ne180100]() const', 'Exiv2::XmpData::erase(std::__1::__wrap_iter )']

46 465 Exiv2::Converter::cnvXmpVersion(charconst*,charconst*) call site: 00000 /src/exiv2/src/convert.cpp:989
46 465 17 :

['Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc', 'Exiv2::LogMsg::handler()', 'Exiv2::LogMsg::~LogMsg()', 'Exiv2::Value::ok() const', 'Exiv2::Converter::prepareExifTarget(char const*, bool)', 'Exiv2::LogMsg::os()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', 'std::__1::__wrap_iter ::operator->[abi:ne180100]() const', 'std::__1::basic_string , std::__1::allocator >::end[abi:ne180100]()', 'void std::__1::replace[abi:ne180100] , char>(std::__1::__wrap_iter , std::__1::__wrap_iter , char const&, char const&)', 'std::__1::basic_string , std::__1::allocator >::begin[abi:ne180100]()', 'Exiv2::LogMsg::level()', 'Exiv2::Exifdatum::operator=(std::__1::basic_string , std::__1::allocator > const&)', 'Exiv2::ExifData::operator[](std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'Exiv2::XmpData::erase(std::__1::__wrap_iter )']

46 465 Exiv2::Converter::cnvXmpGPSVersion(charconst*,charconst*) call site: 00000 /src/exiv2/src/convert.cpp:1009
46 170 6 :

['Exiv2::convertStringCharset(std::__1::basic_string , std::__1::allocator >&, char const*, char const*)', '__cxa_allocate_exception', 'Exiv2::CommentValue::detectCharset(std::__1::basic_string , std::__1::allocator >&) const', '__cxa_free_exception', 'Exiv2::Error::Error (Exiv2::ErrorCode, char const* const&, char const (&) [6])', '__cxa_throw']

46 200 Exiv2::CommentValue::comment(charconst*)const call site: 00000 /src/exiv2/src/value.cpp:367
44 60 7 :

['Exiv2::LogMsg::os()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', 'Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', 'Exiv2::LogMsg::handler()', 'Exiv2::TypeInfo::typeName(Exiv2::TypeId)', 'Exiv2::LogMsg::~LogMsg()', 'Exiv2::LogMsg::level()']

44 60 Exiv2::Internal::toTiffType(Exiv2::TypeId) call site: 00000 /src/exiv2/src/tiffcomposite_int.cpp:1445
44 48 6 :

['Exiv2::LogMsg::os()', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)', 'Exiv2::LogMsg::LogMsg(Exiv2::LogMsg::Level)', 'Exiv2::LogMsg::level()', 'Exiv2::LogMsg::handler()', 'Exiv2::LogMsg::~LogMsg()']

44 109 Exiv2::Internal::TiffEncoder::encodeXmp() call site: 00000 /src/exiv2/src/tiffvisitor_int.cpp:537
34 34 1 :

['Exiv2::Internal::IoWrapper::setTarget(int, unsigned long)']

34 179 Exiv2::Internal::TiffDirectory::doWrite(Exiv2::Internal::IoWrapper&,Exiv2::ByteOrder,unsignedlong,unsignedlong,unsignedlong,unsignedlong&) call site: 00000 /src/exiv2/src/tiffcomposite_int.cpp:800
33 33 1 :

['Exiv2::RiffVideo::readStreamData(unsigned long) const']

33 35 Exiv2::RiffVideo::readChunk(Exiv2::RiffVideo::HeaderReaderconst&) call site: 00000 /src/exiv2/src/riffvideo.cpp:441

Runtime coverage analysis

Covered functions
3379
Functions that are reachable but not covered
52
Reachable functions
264
Percentage of reachable functions covered
80.3%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/exiv2/fuzz/fuzz-read-print-write.cpp 1
/src/exiv2/src/error.cpp 3
/src/exiv2/src/xmp.cpp 4
/src/exiv2/xmpsdk/include/client-glue/TXMPMeta.incl_cpp 3
/src/exiv2/xmpsdk/include/client-glue/WXMP_Common.hpp 1
/src/exiv2/xmpsdk/src/WXMPMeta.cpp 3
/src/exiv2/xmpsdk/src/XMPMeta.cpp 3
/src/exiv2/xmpsdk/src/XMPCore_Impl.cpp 4
/src/exiv2/xmpsdk/src/UnicodeConversions.cpp 3
/src/exiv2/xmpsdk/include/XMP_Const.h 3
/src/exiv2/xmpsdk/src/UnicodeInlines.incl_cpp 6
/src/exiv2/xmpsdk/src/XMPIterator.cpp 2
/src/exiv2/xmpsdk/src/XMPCore_Impl.hpp 3
/src/exiv2/xmpsdk/src/XMPUtils.cpp 2
/src/exiv2/src/properties.cpp 2
/src/exiv2/src/types.cpp 8
/usr/local/bin/../include/c++/v1/stdexcept 2
/src/exiv2/src/image.cpp 5
/src/exiv2/src/jpgimage.cpp 2
/src/exiv2/src/futils.cpp 1
/src/exiv2/include/exiv2/error.hpp 3
/usr/local/bin/../include/c++/v1/__exception/exception.h 1
/usr/local/bin/../include/c++/v1/sstream 2
/src/exiv2/src/cr2image.cpp 1
/src/exiv2/src/cr2header_int.cpp 2
/src/exiv2/src/tiffimage_int.cpp 3
/src/exiv2/include/exiv2/slice.hpp 9
/src/exiv2/include/exiv2/types.hpp 4
/src/exiv2/src/crwimage.cpp 1
/src/exiv2/src/crwimage_int.hpp 1
/src/exiv2/src/mrwimage.cpp 1
/src/exiv2/src/tiffimage.cpp 1
/src/exiv2/src/webpimage.cpp 1
/src/exiv2/src/basicio.cpp 1
/src/exiv2/src/enforce.hpp 2
/src/exiv2/src/rw2image.cpp 1
/src/exiv2/src/rw2image_int.cpp 1
/src/exiv2/src/orfimage.cpp 1
/src/exiv2/src/orfimage_int.cpp 2
/src/exiv2/src/pngimage.cpp 1
/src/exiv2/src/pgfimage.cpp 1
/src/exiv2/src/rafimage.cpp 1
/src/exiv2/src/epsimage.cpp 1
/src/exiv2/src/xmpsidecar.cpp 1
/src/exiv2/src/gifimage.cpp 1
/src/exiv2/src/psdimage.cpp 1
/src/exiv2/src/tgaimage.cpp 1
/src/exiv2/src/bmpimage.cpp 1
/src/exiv2/src/jp2image.cpp 1
/src/exiv2/src/quicktimevideo.cpp 1
/src/exiv2/src/asfvideo.cpp 4
/src/exiv2/src/riffvideo.cpp 1
/src/exiv2/src/matroskavideo.cpp 1
/src/exiv2/src/bmffimage.cpp 1
/src/exiv2/include/exiv2/exif.hpp 2
/src/exiv2/src/metadatum.cpp 1
/src/exiv2/include/exiv2/iptc.hpp 2

Analyses and suggestions

Optimal target analysis

Remaining optimal interesting functions

The following table shows a list of functions that are optimal targets. Optimal targets are identified by finding the functions that in combination, yield a high code coverage.

Func name Functions filename Arg count Args Function depth hitcount instr count bb count cyclomatic complexity Reachable functions Incoming references total cyclomatic complexity Unreached complexity
Exiv2::BmffImage::printStructure(std::__1::basic_ostream >&,Exiv2::PrintStructureOption,unsignedlong) /src/exiv2/src/bmffimage.cpp 4 ['N/A', 'N/A', 'int', 'size_t'] 16 0 164 33 27 817 0 3888 3557
Exiv2::QuickTimeVideo::userDataDecoder(unsignedlong,unsignedlong) /src/exiv2/src/quicktimevideo.cpp 3 ['N/A', 'size_t', 'size_t'] 13 0 582 132 101 297 5 2110 1846
Exiv2::EpsImage::writeMetadata() /src/exiv2/src/epsimage.cpp 1 ['N/A'] 13 0 84 19 20 379 0 2766 1457

Implementing fuzzers that target the above functions will improve reachability such that it becomes:

Functions statically reachable by fuzzers
11.0%
542 / 4911
Cyclomatic complexity statically reachable by fuzzers
19.0%
7324 / 37795

All functions overview

If you implement fuzzers for these functions, the status of all functions in the project will be:

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Fuzz engine guidance

This sections provides heuristics that can be used as input to a fuzz engine when running a given fuzz target. The current focus is on providing input that is usable by libFuzzer.

/src/exiv2/fuzz/fuzz-read-write.cpp

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['Exiv2::ImageFactory::open(std::__1::unique_ptr >)', 'VerifySimpleXMLName(char const*, char const*)', 'LLVMFuzzerTestOneInput', 'Exiv2::Internal::ConstSliceBase::ConstSliceBase(unsigned char const*&, unsigned long, unsigned long)', 'std::__1::basic_string, std::__1::allocator > Exiv2::toBasicString, std::__1::allocator > >(std::__1::basic_string, std::__1::allocator > const&)', 'Exiv2::Internal::ConstSliceBase::ConstSliceBase(unsigned char const*&, unsigned long, unsigned long)', 'Exiv2::Internal::SliceBase::rangeCheck(unsigned long) const', 'Exiv2::isEpsType(Exiv2::BasicIo&, bool)', 'XMPMeta::Initialize()', 'WXMPMeta_Initialize_1']

/src/exiv2/fuzz/fuzz-read-print-write.cpp

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['Exiv2::ImageFactory::open(std::__1::unique_ptr >)', 'Exiv2::Internal::ConstSliceBase::ConstSliceBase(unsigned char const*&, unsigned long, unsigned long)', 'std::__1::basic_string, std::__1::allocator > Exiv2::toBasicString, std::__1::allocator > >(std::__1::basic_string, std::__1::allocator > const&)', 'Exiv2::Internal::SliceBase::rangeCheck(unsigned long) const', 'Exiv2::isEpsType(Exiv2::BasicIo&, bool)', 'XMPMeta::Initialize()', 'VerifySimpleXMLName(char const*, char const*)', 'WXMPMeta_Initialize_1', 'WXMPMeta_RegisterNamespace_1', 'Exiv2::AsfVideo::GUIDTag::GUIDTag(unsigned char const*)']

Runtime coverage analysis

This section shows analysis of runtime coverage data.

For futher technical details on how this section is generated, please see the Glossary .

Complex functions with low coverage

Func name Function total lines Lines covered at runtime percentage covered Reached by fuzzers
Exiv2::Converter::cnvExifDate(charconst*,charconst*) 115 4 3.478% ['fuzz-read-write']
Exiv2::Converter::cnvExifGPSCoord(charconst*,charconst*) 39 4 10.25% ['fuzz-read-write']
Exiv2::Converter::cnvXmpFlash(charconst*,charconst*) 67 4 5.970% ['fuzz-read-write', 'fuzz-read-print-write']
Exiv2::Converter::cnvXmpGPSCoord(charconst*,charconst*) 52 4 7.692% ['fuzz-read-write', 'fuzz-read-print-write']
Exiv2::Converter::cnvXmpValueToIptc(charconst*,charconst*) 41 13 31.70% ['fuzz-read-write', 'fuzz-read-print-write']
Exiv2::Internal::CrwMap::encode0x1810(Exiv2::Imageconst&,Exiv2::Internal::CrwMappingconst&,Exiv2::Internal::CiffHeader&) 36 15 41.66% ['fuzz-read-write']
Exiv2::IptcData::detectCharset()const 53 8 15.09% ['fuzz-read-write']
Exiv2::PsdImage::writeXmpData(Exiv2::XmpDataconst&,Exiv2::BasicIo&)const 36 8 22.22% ['fuzz-read-write']
Exiv2::XmpSidecar::writeMetadata() 45 14 31.11% ['fuzz-read-write']
ExpandXPath(charconst*,charconst*,std::__1::vector >*) 104 54 51.92% ['fuzz-read-write', 'fuzz-read-print-write']
FindNode(XMP_Node*,std::__1::vector >const&,bool,unsignedint,std::__1::__wrap_iter *) 78 41 52.56% ['fuzz-read-write', 'fuzz-read-print-write']
FollowXPathStep(XMP_Node*,std::__1::vector >const&,unsignedlong,bool,std::__1::__wrap_iter *,bool) 56 29 51.78% ['fuzz-read-write', 'fuzz-read-print-write']
XMPMeta::SerializeToBuffer(charconst**,unsignedint*,unsignedint,unsignedint,charconst*,charconst*,int)const 135 44 32.59% ['fuzz-read-write', 'fuzz-read-print-write']
Exiv2::Internal::resolveLens0xffff(std::__1::basic_ostream >&,Exiv2::Valueconst&,Exiv2::ExifDataconst*) 43 21 48.83% ['fuzz-read-print-write']
XMPIterator::XMPIterator(XMPMetaconst&,charconst*,charconst*,unsignedint) 71 36 50.70% ['fuzz-read-print-write']
NormalizeDCArrays(XMP_Node*) 42 22 52.38% ['fuzz-read-print-write']
AdjustTimeOverflow(XMP_DateTime*) 111 48 43.24% ['fuzz-read-print-write']

Files and Directories in report

This section shows which files and directories are considered in this report. The main reason for showing this is fuzz introspector may include more code in the reasoning than is desired. This section helps identify if too many files/directories are included, e.g. third party code, which may be irrelevant for the threat model. In the event too much is included, fuzz introspector supports a configuration file that can exclude data from the report. See the following link for more information on how to create a config file: link

Files in report

Source file Reached by Covered by
[] []
/src/exiv2/src/quicktimevideo.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/include/exiv2/slice.hpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/exif.cpp [] []
/src/exiv2/src/types.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/tiffcomposite_int.hpp [] []
/src/exiv2/src/olympusmn_int.cpp [] []
/src/exiv2/src/iptc.cpp [] []
/src/exiv2/include/exiv2/properties.hpp [] []
/src/exiv2/include/exiv2/psdimage.hpp [] []
/src/exiv2/include/exiv2/value.hpp [] []
/src/exiv2/src/jp2image.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/utils.hpp [] []
/src/exiv2/src/gifimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/basicio.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/include/exiv2/tags.hpp [] []
/src/exiv2/src/image_int.hpp [] []
/src/exiv2/src/futils.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/datasets.cpp [] []
/src/exiv2/src/cr2header_int.hpp [] []
/src/exiv2/src/utils.cpp [] []
/src/exiv2/xmpsdk/src/XMPCore_Impl.hpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/tiffcomposite_int.cpp [] []
/src/exiv2/src/webpimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/image_int.cpp [] []
/src/exiv2/src/cr2image.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/usr/local/bin/../include/c++/v1/string [] []
/src/exiv2/include/exiv2/preview.hpp [] []
/src/exiv2/include/exiv2/xmpsidecar.hpp [] []
/src/exiv2/src/pngchunk_int.cpp [] []
/src/exiv2/include/exiv2/epsimage.hpp [] []
/src/exiv2/src/samsungmn_int.cpp [] []
/src/exiv2/include/exiv2/jp2image.hpp [] []
/src/exiv2/include/exiv2/crwimage.hpp [] []
/src/exiv2/src/tgaimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/orfimage_int.hpp [] []
/src/exiv2/include/exiv2/basicio.hpp [] []
/src/exiv2/src/pentaxmn_int.cpp [] []
/src/exiv2/src/crwimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/include/exiv2/gifimage.hpp [] []
/src/exiv2/include/exiv2/rafimage.hpp [] []
/src/exiv2/xmpsdk/src/XMPMeta-Parse.cpp [] []
/src/exiv2/src/cr2header_int.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/xmpsdk/src/XMLParserAdapter.hpp [] []
/src/exiv2/include/exiv2/types.hpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/psdimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/include/exiv2/exif.hpp ['fuzz-read-print-write'] ['fuzz-read-print-write']
/src/exiv2/src/rafimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/metadatum.cpp ['fuzz-read-print-write'] ['fuzz-read-print-write']
/src/exiv2/src/tiffvisitor_int.hpp [] []
/src/exiv2/include/exiv2/quicktimevideo.hpp [] []
/src/exiv2/src/tags.cpp [] []
/src/exiv2/src/properties.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/riffvideo.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/xmpsdk/src/UnicodeInlines.incl_cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/usr/local/bin/../include/c++/v1/sstream ['fuzz-read-write', 'fuzz-read-print-write'] []
/src/exiv2/src/image.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/include/exiv2/metadatum.hpp [] []
/src/exiv2/src/jpgimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/include/exiv2/jpgimage.hpp [] []
/src/exiv2/src/convert.cpp [] []
/src/exiv2/include/exiv2/xmp_exiv2.hpp [] []
/src/exiv2/src/tiffimage_int.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/rw2image_int.hpp [] []
/src/exiv2/src/pgfimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/xmpsdk/src/ExpatAdapter.cpp [] []
/src/exiv2/include/exiv2/bmpimage.hpp [] []
/src/exiv2/src/pentaxmn_int.hpp [] []
/src/exiv2/src/makernote_int.hpp [] []
/src/exiv2/src/value.cpp [] []
/src/exiv2/fuzz/fuzz-read-print-write.cpp ['fuzz-read-print-write'] ['fuzz-read-print-write']
/src/exiv2/xmpsdk/src/XMPMeta.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/xmpsdk/src/MD5.cpp [] []
/src/exiv2/xmpsdk/src/WXMPIterator.cpp [] []
/src/exiv2/src/tags_int.cpp [] []
/src/exiv2/fuzz/fuzz-read-write.cpp ['fuzz-read-write'] ['fuzz-read-write']
/src/exiv2/xmpsdk/include/client-glue/TXMPUtils.incl_cpp [] []
/src/exiv2/include/exiv2/bmffimage.hpp [] []
/src/exiv2/src/orfimage_int.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/usr/include/stdlib.h [] []
/src/exiv2/src/matroskavideo.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/xmpsdk/include/client-glue/TXMPIterator.incl_cpp [] []
/src/exiv2/xmpsdk/src/ParseRDF.cpp [] []
/src/exiv2/include/exiv2/image.hpp [] []
/usr/local/bin/../include/c++/v1/__format/buffer.h [] []
/src/exiv2/xmpsdk/include/XMP_Const.h ['fuzz-read-write', 'fuzz-read-print-write'] []
/src/exiv2/xmpsdk/src/WXMPMeta.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/xmpsdk/src/XMPIterator.hpp [] []
/src/exiv2/include/exiv2/pgfimage.hpp [] []
/src/exiv2/src/panasonicmn_int.cpp [] []
/usr/local/bin/../include/c++/v1/__algorithm/ranges_upper_bound.h [] []
/src/exiv2/src/enforce.hpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/xmpsdk/src/UnicodeConversions.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/xmpsdk/src/XMPMeta-Serialize.cpp [] []
/src/exiv2/xmpsdk/src/XMPMeta-GetSet.cpp [] []
/src/exiv2/src/rw2image_int.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/usr/local/bin/../include/c++/v1/__format/format_arg_store.h [] []
/src/exiv2/src/orfimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/usr/local/bin/../include/c++/v1/__iterator/move_iterator.h [] []
/src/exiv2/src/asfvideo.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/xmpsdk/src/XMPCore_Impl.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/tiffimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/include/exiv2/datasets.hpp [] []
/usr/local/bin/../include/c++/v1/__format/format_functions.h [] []
/src/exiv2/include/exiv2/rw2image.hpp [] []
/src/exiv2/include/exiv2/webpimage.hpp [] []
/src/exiv2/include/exiv2/pngimage.hpp [] []
/src/exiv2/src/xmpsidecar.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/sigmamn_int.cpp [] []
/src/exiv2/xmpsdk/include/client-glue/WXMP_Common.hpp ['fuzz-read-write', 'fuzz-read-print-write'] []
/src/exiv2/src/jp2image_int.cpp [] []
/src/exiv2/xmpsdk/src/XML_Node.cpp [] []
/src/exiv2/src/error.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/tags_int.hpp [] []
/src/exiv2/src/http.cpp [] []
/usr/include/ctype.h [] []
/src/exiv2/include/exiv2/orfimage.hpp [] []
/src/exiv2/include/exiv2/futils.hpp [] []
/usr/local/bin/../include/c++/v1/__exception/exception.h ['fuzz-read-write', 'fuzz-read-print-write'] []
/src/exiv2/src/safe_op.hpp [] []
/usr/local/bin/../include/c++/v1/optional [] []
/src/exiv2/src/nikonmn_int.cpp [] []
/src/exiv2/src/pngimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/xmpsdk/include/client-glue/TXMPMeta.incl_cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/version.cpp [] []
/src/exiv2/src/casiomn_int.cpp [] []
/src/exiv2/src/mrwimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/fujimn_int.cpp [] []
/src/exiv2/src/crwimage_int.cpp [] []
/src/exiv2/src/bmpimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/canonmn_int.cpp [] []
/src/exiv2/src/makernote_int.cpp [] []
/src/exiv2/xmpsdk/src/XMPIterator.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/include/exiv2/error.hpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/bmffimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/crwimage_int.hpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/epsimage.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/usr/local/bin/../include/c++/v1/stdexcept ['fuzz-read-write', 'fuzz-read-print-write'] []
/src/exiv2/include/exiv2/iptc.hpp ['fuzz-read-print-write'] ['fuzz-read-print-write']
/src/exiv2/xmpsdk/src/XMPUtils.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/include/exiv2/asfvideo.hpp [] []
/src/exiv2/include/exiv2/tiffimage.hpp [] []
/src/exiv2/src/rw2image.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/include/exiv2/matroskavideo.hpp [] []
/src/exiv2/src/preview.cpp [] []
/src/exiv2/src/photoshop.cpp [] []
/src/exiv2/xmpsdk/src/XMPUtils-FileInfo.cpp [] []
/src/exiv2/src/xmp.cpp ['fuzz-read-write', 'fuzz-read-print-write'] ['fuzz-read-write', 'fuzz-read-print-write']
/src/exiv2/src/tiffvisitor_int.cpp [] []
/src/exiv2/include/exiv2/tgaimage.hpp [] []
/src/exiv2/include/exiv2/mrwimage.hpp [] []
/usr/local/bin/../include/c++/v1/__format/parser_std_format_spec.h [] []
/src/exiv2/src/sonymn_int.cpp [] []
/usr/local/bin/../include/c++/v1/stdlib.h [] []
/src/exiv2/include/exiv2/cr2image.hpp [] []
/src/exiv2/include/exiv2/riffvideo.hpp [] []
/src/exiv2/src/helper_functions.cpp [] []
/src/exiv2/src/minoltamn_int.cpp [] []
/src/exiv2/xmpsdk/src/WXMPUtils.cpp [] []
/src/exiv2/src/tiffimage_int.hpp [] []

Directories in report

Directory
/src/exiv2/xmpsdk/include/
/src/exiv2/xmpsdk/src/
/usr/local/bin/../include/c++/v1/__algorithm/
/src/exiv2/xmpsdk/include/client-glue/
/usr/local/bin/../include/c++/v1/
/src/exiv2/fuzz/
/usr/local/bin/../include/c++/v1/__format/
/usr/local/bin/../include/c++/v1/__exception/
/src/exiv2/include/exiv2/
/src/exiv2/src/
/usr/include/
/usr/local/bin/../include/c++/v1/__iterator/