• Simplify integer value retrieval by introducing a templated `value` method in the `Integer` class. Replace redundant exception handling logic across multiple functions with this unified approach. Streamline type conversions and improve readability.
    m-holger authored
     
    Browse Dir »




  • Refactor array handling in `QPDFObjectHandle`: replace `int` with `size_t` for size and index operations, introduce utility functions for type conversions, and simplify sparse array logic.
    m-holger authored
     
    Browse Dir »










  • Change the return type to a std::pair<bool, QPDFObjectHandle> in order to
    allow a default constructed object handle (which is currently returned to
    indicate failure) to become a valid object.
    m-holger authored
     
    Browse Dir »



  • GCC 15 starts to no longer include this by default, requiring it to be
    explicitly included.
    
    Error message:
    libtests/cxx11.cc:75:16: error: ‘uint8_t’ was not declared in this scope
       75 |     check_size<uint8_t>(1, false);
          |                ^~~~~~~
    libtests/cxx11.cc:10:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
        9 | #include <regex>
      +++ |+#include <cstdint>
       10 | #include <type_traits>
    
    Signed-off-by: Christopher Fore <csfore@posteo.net>
    Christopher Fore authored
     
    Browse Dir »

  • As a rule, we should avoid conditional compilation is it always causes
    code paths that are sometimes not even seen lexically by the compiler.
    Also, we want the actual code being fuzzed to be as close as possible
    to the real code. Conditional compilation is suitable to handle
    underlying system differences.
    
    Instead, favor configuration using callbacks or other methods that can
    be triggered in the places where they need to be exercised.
    Jay Berkenbilt authored
     
    Browse Dir »