• Fixes oss-fuzz case 394129398.
    
    Issue arose from chaining multiple runlength filters and inflating a
    compressed stream of ~100 bytes to several gigabytes.
    
    There is no obvious fix without imposing an arbitrary implementation limit
    and therefore potentially excluding valid PDF files.
    m-holger authored
     
    Browse File »

















  • Jay Berkenbilt authored
     
    Browse File »
  • Where not possible, use "auto" to get the iterator type.
    
    Editorial note: I have avoid this change for a long time because of
    not wanting to make gratuitous changes to version history, which can
    obscure when certain changes were made, but with having recently
    touched every single file to apply automatic code formatting and with
    making several broad changes to the API, I decided it was time to take
    the plunge and get rid of the older (pre-C++11) verbose iterator
    syntax. The new code is just easier to read and understand, and in
    many cases, it will be more effecient as fewer temporary copies are
    being made.
    
    m-holger, if you're reading, you can see that I've finally come
    around. :-)
    Jay Berkenbilt authored
     
    Browse File »


  • Increase to POINTERHOLDER_TRANSITION=3
    
    patrepl s/PointerHolder/std::shared_ptr/g **/*.cc **/*.hh
    patrepl s/make_pointer_holder/std::make_shared/g **/*.cc
    patrepl s/make_array_pointer_holder/QUtil::make_shared_array/g **/*.cc
    patrepl s,qpdf/std::shared_ptr,qpdf/PointerHolder, **/*.cc **/*.hh
    git restore include/qpdf/PointerHolder.hh
    git restore libtests/pointer_holder.cc
    cleanpatch
    ./format-code
    Jay Berkenbilt authored
     
    Browse File »


  • This comment expands all tabs using an 8-character tab-width. You
    should ignore this commit when using git blame or use git blame -w.
    
    In the early days, I used to use tabs where possible for indentation,
    since emacs did this automatically. In recent years, I have switched
    to only using spaces, which means qpdf source code has been a mixture
    of spaces and tabs. I have avoided cleaning this up because of not
    wanting gratuitous whitespaces change to cloud the output of git
    blame, but I changed my mind after discussing with users who view qpdf
    source code in editors/IDEs that have other tab widths by default and
    in light of the fact that I am planning to start applying automatic
    code formatting soon.
    Jay Berkenbilt authored
     
    Browse File »