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

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
10 10 4 :

['__cxa_allocate_exception', 'std::out_of_range::out_of_range[abi:v180000](char const*)', '__cxa_free_exception', '__cxa_throw']

10 10 read_bits(unsignedcharconst*&,unsignedlong&,unsignedlong&,unsignedlong) call site: 00000 /src/qpdf/libqpdf/qpdf/bits_functions.hh:34
10 10 4 :

['__cxa_allocate_exception', 'std::out_of_range::out_of_range[abi:v180000](char const*)', '__cxa_free_exception', '__cxa_throw']

10 10 write_bits(unsignedchar&,unsignedlong&,unsignedlonglong,unsignedlong,Pipeline*) call site: 00000 /src/qpdf/libqpdf/qpdf/bits_functions.hh:89
8 8 4 :

['__cxa_allocate_exception', 'std::runtime_error::runtime_error(char const*)', '__cxa_free_exception', '__cxa_throw']

8 8 BitStream::reset() call site: 00000 /src/qpdf/libqpdf/BitStream.cc:21
0 0 None 8 10 Pl_TIFFPredictor::Pl_TIFFPredictor(charconst*,Pipeline*,Pl_TIFFPredictor::action_e,unsignedint,unsignedint,unsignedint) call site: 00000 /src/qpdf/libqpdf/Pl_TIFFPredictor.cc:29
0 0 None 8 10 Pl_TIFFPredictor::Pl_TIFFPredictor(charconst*,Pipeline*,Pl_TIFFPredictor::action_e,unsignedint,unsignedint,unsignedint) call site: 00000 /src/qpdf/libqpdf/Pl_TIFFPredictor.cc:32
0 0 None 8 10 Pl_TIFFPredictor::Pl_TIFFPredictor(charconst*,Pipeline*,Pl_TIFFPredictor::action_e,unsignedint,unsignedint,unsignedint) call site: 00000 /src/qpdf/libqpdf/Pl_TIFFPredictor.cc:36
0 0 None 0 78 Pl_TIFFPredictor::processRow() call site: 00000 /src/qpdf/libqpdf/Pl_TIFFPredictor.cc:83
0 0 None 0 0 Pl_TIFFPredictor::processRow() call site: 00000 /src/qpdf/libqpdf/Pl_TIFFPredictor.cc:104

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 FuzzHelper::FuzzHelper(unsigned char const*, unsigned long) [function] [call site] 00001
1 FuzzHelper::run() [function] [call site] 00002
2 FuzzHelper::doChecks() [function] [call site] 00003
3 Pl_Discard::Pl_Discard() [function] [call site] 00004
4 Pipeline::Pipeline(char const*, Pipeline*) [function] [call site] 00005
3 Pl_TIFFPredictor::Pl_TIFFPredictor(char const*, Pipeline*, Pl_TIFFPredictor::action_e, unsigned int, unsigned int, unsigned int) [function] [call site] 00006
4 Pipeline::Pipeline(char const*, Pipeline*) [function] [call site] 00007
4 Pipeline::getNext(bool) [function] [call site] 00008
5 __cxa_allocate_exception [call site] 00009
4 __cxa_allocate_exception [call site] 00010
4 __cxa_allocate_exception [call site] 00011
4 __cxa_allocate_exception [call site] 00012
4 __cxa_allocate_exception [call site] 00013
4 Pipeline::~Pipeline() [function] [call site] 00014
3 Pl_TIFFPredictor::write(unsigned char const*, unsigned long) [function] [call site] 00015
4 Pl_TIFFPredictor::processRow() [function] [call site] 00016
5 QTC::TC(char const*, char const*, int) [function] [call site] 00017
5 BitWriter::BitWriter(Pipeline*) [function] [call site] 00018
5 BitStream::BitStream(unsigned char const*, unsigned long) [function] [call site] 00019
6 BitStream::reset() [function] [call site] 00020
7 unsigned int QIntC::to_uint<unsigned long>(unsigned long const&) [function] [call site] 00021
8 QIntC::IntConverter<unsigned long, unsigned int, false, false>::convert(unsigned long const&) [function] [call site] 00022
9 QIntC::IntConverter<unsigned long, unsigned int, false, false>::error(unsigned long) [function] [call site] 00023
10 __cxa_allocate_exception [call site] 00024
10 std::range_error::range_error[abi:v180000](std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) [function] [call site] 00025
11 std::runtime_error::runtime_error(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) [call site] 00026
7 __cxa_allocate_exception [call site] 00027
5 BitStream::getBitsSigned(unsigned long) [function] [call site] 00028
6 read_bits(unsigned char const*&, unsigned long&, unsigned long&, unsigned long) [function] [call site] 00029
7 __cxa_allocate_exception [call site] 00030
7 std::out_of_range::out_of_range[abi:v180000](char const*) [function] [call site] 00031
8 std::logic_error::logic_error(char const*) [call site] 00032
5 BitWriter::writeBitsSigned(long long, unsigned long) [function] [call site] 00033
6 BitWriter::writeBits(unsigned long long, unsigned long) [function] [call site] 00034
7 write_bits(unsigned char&, unsigned long&, unsigned long long, unsigned long, Pipeline*) [function] [call site] 00035
8 __cxa_allocate_exception [call site] 00036
8 std::out_of_range::out_of_range[abi:v180000](char const*) [function] [call site] 00037
5 BitWriter::flush() [function] [call site] 00038
6 write_bits(unsigned char&, unsigned long&, unsigned long long, unsigned long, Pipeline*) [function] [call site] 00039
3 Pl_TIFFPredictor::finish() [function] [call site] 00040
4 Pl_TIFFPredictor::processRow() [function] [call site] 00041
3 Pl_TIFFPredictor::Pl_TIFFPredictor(char const*, Pipeline*, Pl_TIFFPredictor::action_e, unsigned int, unsigned int, unsigned int) [function] [call site] 00042
3 Pl_TIFFPredictor::write(unsigned char const*, unsigned long) [function] [call site] 00043
3 Pl_TIFFPredictor::finish() [function] [call site] 00044
3 Pl_TIFFPredictor::~Pl_TIFFPredictor() [function] [call site] 00045
4 Pipeline::~Pipeline() [function] [call site] 00046
3 Pl_Discard::~Pl_Discard() [function] [call site] 00047
4 Pipeline::~Pipeline() [function] [call site] 00048
2 __cxa_begin_catch [call site] 00049
2 __cxa_end_catch [call site] 00050