Commit 2f8751ec790a765bd56088e259868d84949bf5c9

Authored by m-holger
Committed by GitHub
2 parents 05cb757d 4d4f165f

Merge pull request #1545 from m-holger/fuzz

During xref recovery, limit trailer search to the last 100 candidates…
libqpdf/QPDF_objects.cc
... ... @@ -298,7 +298,10 @@ QPDF::reconstruct_xref(QPDFExc& e, bool found_startxref)
298 298 }
299 299 m->deleted_objects.clear();
300 300  
301   - for (auto it = trailers.rbegin(); it != trailers.rend(); it++) {
  301 + // Search at most the last 100 trailer candidates. If none of them are valid, odds are this file
  302 + // is deliberately broken.
  303 + int end_index = trailers.size() > 100 ? static_cast<int>(trailers.size()) - 100 : 0;
  304 + for (auto it = trailers.rbegin(); it != std::prev(trailers.rend(), end_index); it++) {
302 305 m->file->seek(*it, SEEK_SET);
303 306 auto t = readTrailer();
304 307 if (!t.isDictionary()) {
... ...
qpdf/qtest/qpdf/issue-335a.out
... ... @@ -654,353 +654,4 @@ WARNING: issue-335a.pdf (trailer, offset 1434): invalid character (#) in hexstri
654 654 WARNING: issue-335a.pdf (trailer, offset 1436): unexpected )
655 655 WARNING: issue-335a.pdf (trailer, offset 1437): unexpected )
656 656 WARNING: issue-335a.pdf (trailer, offset 1437): too many errors; giving up on reading object
657   -WARNING: issue-335a.pdf (trailer, offset 1324): treating unexpected brace token as null
658   -WARNING: issue-335a.pdf (trailer, offset 1325): unexpected )
659   -WARNING: issue-335a.pdf (trailer, offset 1326): unknown token while reading object; treating as null
660   -WARNING: issue-335a.pdf (trailer, offset 1327): unexpected )
661   -WARNING: issue-335a.pdf (trailer, offset 1328): unexpected )
662   -WARNING: issue-335a.pdf (trailer, offset 1329): name with stray # will not work with PDF >= 1.2
663   -WARNING: issue-335a.pdf (trailer, offset 1332): unexpected )
664   -WARNING: issue-335a.pdf (trailer, offset 1332): too many errors; giving up on reading object
665   -WARNING: issue-335a.pdf (trailer, offset 1309): unknown token while reading object; treating as null
666   -WARNING: issue-335a.pdf (trailer, offset 1326): unknown token while reading object; treating as null
667   -WARNING: issue-335a.pdf (trailer, offset 1327): unexpected )
668   -WARNING: issue-335a.pdf (trailer, offset 1328): unexpected )
669   -WARNING: issue-335a.pdf (trailer, offset 1329): name with stray # will not work with PDF >= 1.2
670   -WARNING: issue-335a.pdf (trailer, offset 1332): unexpected )
671   -WARNING: issue-335a.pdf (trailer, offset 1333): unexpected )
672   -WARNING: issue-335a.pdf (trailer, offset 1333): too many errors; giving up on reading object
673   -WARNING: issue-335a.pdf (trailer, offset 1293): treating unexpected brace token as null
674   -WARNING: issue-335a.pdf (trailer, offset 1294): unexpected )
675   -WARNING: issue-335a.pdf (trailer, offset 1295): unexpected )
676   -WARNING: issue-335a.pdf (trailer, offset 1328): unexpected )
677   -WARNING: issue-335a.pdf (trailer, offset 1329): name with stray # will not work with PDF >= 1.2
678   -WARNING: issue-335a.pdf (trailer, offset 1332): unexpected )
679   -WARNING: issue-335a.pdf (trailer, offset 1333): unexpected )
680   -WARNING: issue-335a.pdf (trailer, offset 1333): too many errors; giving up on reading object
681   -WARNING: issue-335a.pdf (trailer, offset 1279): unknown token while reading object; treating as null
682   -WARNING: issue-335a.pdf (trailer, offset 1295): unexpected )
683   -WARNING: issue-335a.pdf (trailer, offset 1328): unexpected )
684   -WARNING: issue-335a.pdf (trailer, offset 1329): name with stray # will not work with PDF >= 1.2
685   -WARNING: issue-335a.pdf (trailer, offset 1332): unexpected )
686   -WARNING: issue-335a.pdf (trailer, offset 1333): unexpected )
687   -WARNING: issue-335a.pdf (trailer, offset 1344): unexpected )
688   -WARNING: issue-335a.pdf (trailer, offset 1344): too many errors; giving up on reading object
689   -WARNING: issue-335a.pdf (trailer, offset 1260): treating unexpected brace token as null
690   -WARNING: issue-335a.pdf (trailer, offset 1261): unexpected )
691   -WARNING: issue-335a.pdf (trailer, offset 1262): unknown token while reading object; treating as null
692   -WARNING: issue-335a.pdf (trailer, offset 1263): unexpected )
693   -WARNING: issue-335a.pdf (trailer, offset 1264): unexpected )
694   -WARNING: issue-335a.pdf (trailer, offset 1265): unexpected )
695   -WARNING: issue-335a.pdf (trailer, offset 1265): too many errors; giving up on reading object
696   -WARNING: issue-335a.pdf (trailer, offset 1244): unknown token while reading object; treating as null
697   -WARNING: issue-335a.pdf (trailer, offset 1262): unknown token while reading object; treating as null
698   -WARNING: issue-335a.pdf (trailer, offset 1263): unexpected )
699   -WARNING: issue-335a.pdf (trailer, offset 1264): unexpected )
700   -WARNING: issue-335a.pdf (trailer, offset 1265): unexpected )
701   -WARNING: issue-335a.pdf (trailer, offset 1328): unexpected )
702   -WARNING: issue-335a.pdf (trailer, offset 1328): too many errors; giving up on reading object
703   -WARNING: issue-335a.pdf (trailer, offset 1226): invalid character (<) in hexstring
704   -WARNING: issue-335a.pdf (trailer, offset 1212): unknown token while reading object; treating as null
705   -WARNING: issue-335a.pdf (trailer, offset 1265): unexpected )
706   -WARNING: issue-335a.pdf (trailer, offset 1328): unexpected )
707   -WARNING: issue-335a.pdf (trailer, offset 1329): name with stray # will not work with PDF >= 1.2
708   -WARNING: issue-335a.pdf (trailer, offset 1332): unexpected )
709   -WARNING: issue-335a.pdf (trailer, offset 1333): unexpected )
710   -WARNING: issue-335a.pdf (trailer, offset 1344): unexpected )
711   -WARNING: issue-335a.pdf (trailer, offset 1344): too many errors; giving up on reading object
712   -WARNING: issue-335a.pdf (trailer, offset 1196): treating unexpected brace token as null
713   -WARNING: issue-335a.pdf (trailer, offset 1197): unexpected )
714   -WARNING: issue-335a.pdf (trailer, offset 1198): unexpected )
715   -WARNING: issue-335a.pdf (trailer, offset 1328): unexpected )
716   -WARNING: issue-335a.pdf (trailer, offset 1329): name with stray # will not work with PDF >= 1.2
717   -WARNING: issue-335a.pdf (trailer, offset 1332): unexpected )
718   -WARNING: issue-335a.pdf (trailer, offset 1333): unexpected )
719   -WARNING: issue-335a.pdf (trailer, offset 1333): too many errors; giving up on reading object
720   -WARNING: issue-335a.pdf (trailer, offset 1182): unknown token while reading object; treating as null
721   -WARNING: issue-335a.pdf (trailer, offset 1198): unexpected )
722   -WARNING: issue-335a.pdf (trailer, offset 1328): unexpected )
723   -WARNING: issue-335a.pdf (trailer, offset 1329): name with stray # will not work with PDF >= 1.2
724   -WARNING: issue-335a.pdf (trailer, offset 1332): unexpected )
725   -WARNING: issue-335a.pdf (trailer, offset 1333): unexpected )
726   -WARNING: issue-335a.pdf (trailer, offset 1344): unexpected )
727   -WARNING: issue-335a.pdf (trailer, offset 1344): too many errors; giving up on reading object
728   -WARNING: issue-335a.pdf (trailer, offset 1159): treating unexpected brace token as null
729   -WARNING: issue-335a.pdf (trailer, offset 1160): unexpected )
730   -WARNING: issue-335a.pdf (trailer, offset 1161): unknown token while reading object; treating as null
731   -WARNING: issue-335a.pdf (trailer, offset 1162): unexpected )
732   -WARNING: issue-335a.pdf (trailer, offset 1163): unexpected )
733   -WARNING: issue-335a.pdf (trailer, offset 1164): name with stray # will not work with PDF >= 1.2
734   -WARNING: issue-335a.pdf (trailer, offset 1167): unexpected )
735   -WARNING: issue-335a.pdf (trailer, offset 1167): too many errors; giving up on reading object
736   -WARNING: issue-335a.pdf (trailer, offset 1047): treating unexpected brace token as null
737   -WARNING: issue-335a.pdf (trailer, offset 1048): unexpected )
738   -WARNING: issue-335a.pdf (trailer, offset 1049): unexpected )
739   -WARNING: issue-335a.pdf (trailer, offset 1163): unexpected )
740   -WARNING: issue-335a.pdf (trailer, offset 1164): name with stray # will not work with PDF >= 1.2
741   -WARNING: issue-335a.pdf (trailer, offset 1167): unexpected )
742   -WARNING: issue-335a.pdf (trailer, offset 1168): unexpected )
743   -WARNING: issue-335a.pdf (trailer, offset 1168): too many errors; giving up on reading object
744   -WARNING: issue-335a.pdf (trailer, offset 1033): unknown token while reading object; treating as null
745   -WARNING: issue-335a.pdf (trailer, offset 1049): unexpected )
746   -WARNING: issue-335a.pdf (trailer, offset 1163): unexpected )
747   -WARNING: issue-335a.pdf (trailer, offset 1164): name with stray # will not work with PDF >= 1.2
748   -WARNING: issue-335a.pdf (trailer, offset 1167): unexpected )
749   -WARNING: issue-335a.pdf (trailer, offset 1168): unexpected )
750   -WARNING: issue-335a.pdf (trailer, offset 1328): unexpected )
751   -WARNING: issue-335a.pdf (trailer, offset 1329): name with stray # will not work with PDF >= 1.2
752   -WARNING: issue-335a.pdf (trailer, offset 1332): unexpected )
753   -WARNING: issue-335a.pdf (trailer, offset 1332): too many errors; giving up on reading object
754   -WARNING: issue-335a.pdf (trailer, offset 1010): treating unexpected brace token as null
755   -WARNING: issue-335a.pdf (trailer, offset 1011): unexpected )
756   -WARNING: issue-335a.pdf (trailer, offset 1012): unknown token while reading object; treating as null
757   -WARNING: issue-335a.pdf (trailer, offset 1013): unexpected )
758   -WARNING: issue-335a.pdf (trailer, offset 1014): unexpected )
759   -WARNING: issue-335a.pdf (trailer, offset 1015): name with stray # will not work with PDF >= 1.2
760   -WARNING: issue-335a.pdf (trailer, offset 1018): unexpected )
761   -WARNING: issue-335a.pdf (trailer, offset 1018): too many errors; giving up on reading object
762   -WARNING: issue-335a.pdf (trailer, offset 995): unknown token while reading object; treating as null
763   -WARNING: issue-335a.pdf (trailer, offset 1012): unknown token while reading object; treating as null
764   -WARNING: issue-335a.pdf (trailer, offset 1013): unexpected )
765   -WARNING: issue-335a.pdf (trailer, offset 1014): unexpected )
766   -WARNING: issue-335a.pdf (trailer, offset 1015): name with stray # will not work with PDF >= 1.2
767   -WARNING: issue-335a.pdf (trailer, offset 1018): unexpected )
768   -WARNING: issue-335a.pdf (trailer, offset 1019): unexpected )
769   -WARNING: issue-335a.pdf (trailer, offset 1019): too many errors; giving up on reading object
770   -WARNING: issue-335a.pdf (trailer, offset 980): treating unexpected brace token as null
771   -WARNING: issue-335a.pdf (trailer, offset 981): unexpected )
772   -WARNING: issue-335a.pdf (trailer, offset 1014): unexpected )
773   -WARNING: issue-335a.pdf (trailer, offset 1015): name with stray # will not work with PDF >= 1.2
774   -WARNING: issue-335a.pdf (trailer, offset 1018): unexpected )
775   -WARNING: issue-335a.pdf (trailer, offset 1019): unexpected )
776   -WARNING: issue-335a.pdf (trailer, offset 1163): unexpected )
777   -WARNING: issue-335a.pdf (trailer, offset 1163): too many errors; giving up on reading object
778   -WARNING: issue-335a.pdf (trailer, offset 950): treating unexpected brace token as null
779   -WARNING: issue-335a.pdf (trailer, offset 951): unexpected )
780   -WARNING: issue-335a.pdf (trailer, offset 952): unexpected )
781   -WARNING: issue-335a.pdf (trailer, offset 953): unknown token while reading object; treating as null
782   -WARNING: issue-335a.pdf (trailer, offset 1015): name with stray # will not work with PDF >= 1.2
783   -WARNING: issue-335a.pdf (trailer, offset 1018): unexpected )
784   -WARNING: issue-335a.pdf (trailer, offset 1019): unexpected )
785   -WARNING: issue-335a.pdf (trailer, offset 1019): too many errors; giving up on reading object
786   -WARNING: issue-335a.pdf (trailer, offset 936): unknown token while reading object; treating as null
787   -WARNING: issue-335a.pdf (trailer, offset 952): unexpected )
788   -WARNING: issue-335a.pdf (trailer, offset 953): unknown token while reading object; treating as null
789   -WARNING: issue-335a.pdf (trailer, offset 1015): name with stray # will not work with PDF >= 1.2
790   -WARNING: issue-335a.pdf (trailer, offset 1018): unexpected )
791   -WARNING: issue-335a.pdf (trailer, offset 1019): unexpected )
792   -WARNING: issue-335a.pdf (trailer, offset 1163): unexpected )
793   -WARNING: issue-335a.pdf (trailer, offset 1163): too many errors; giving up on reading object
794   -WARNING: issue-335a.pdf (trailer, offset 918): treating unexpected brace token as null
795   -WARNING: issue-335a.pdf (trailer, offset 919): unexpected )
796   -WARNING: issue-335a.pdf (trailer, offset 920): unknown token while reading object; treating as null
797   -WARNING: issue-335a.pdf (trailer, offset 921): unexpected )
798   -WARNING: issue-335a.pdf (trailer, offset 922): unexpected )
799   -WARNING: issue-335a.pdf (trailer, offset 953): unknown token while reading object; treating as null
800   -WARNING: issue-335a.pdf (trailer, offset 953): too many errors; giving up on reading object
801   -WARNING: issue-335a.pdf (trailer, offset 902): unknown token while reading object; treating as null
802   -WARNING: issue-335a.pdf (trailer, offset 920): unknown token while reading object; treating as null
803   -WARNING: issue-335a.pdf (trailer, offset 921): unexpected )
804   -WARNING: issue-335a.pdf (trailer, offset 922): unexpected )
805   -WARNING: issue-335a.pdf (trailer, offset 953): unknown token while reading object; treating as null
806   -WARNING: issue-335a.pdf (trailer, offset 1015): name with stray # will not work with PDF >= 1.2
807   -WARNING: issue-335a.pdf (trailer, offset 1018): unexpected )
808   -WARNING: issue-335a.pdf (trailer, offset 1018): too many errors; giving up on reading object
809   -WARNING: issue-335a.pdf (trailer, offset 870): unknown token while reading object; treating as null
810   -WARNING: issue-335a.pdf (trailer, offset 953): unknown token while reading object; treating as null
811   -WARNING: issue-335a.pdf (trailer, offset 1015): name with stray # will not work with PDF >= 1.2
812   -WARNING: issue-335a.pdf (trailer, offset 1018): unexpected )
813   -WARNING: issue-335a.pdf (trailer, offset 1019): unexpected )
814   -WARNING: issue-335a.pdf (trailer, offset 1163): unexpected )
815   -WARNING: issue-335a.pdf (trailer, offset 1164): name with stray # will not work with PDF >= 1.2
816   -WARNING: issue-335a.pdf (trailer, offset 1167): unexpected )
817   -WARNING: issue-335a.pdf (trailer, offset 1167): too many errors; giving up on reading object
818   -WARNING: issue-335a.pdf (trailer, offset 854): treating unexpected brace token as null
819   -WARNING: issue-335a.pdf (trailer, offset 855): unexpected )
820   -WARNING: issue-335a.pdf (trailer, offset 856): unexpected )
821   -WARNING: issue-335a.pdf (trailer, offset 1019): unexpected )
822   -WARNING: issue-335a.pdf (trailer, offset 1163): unexpected )
823   -WARNING: issue-335a.pdf (trailer, offset 1164): name with stray # will not work with PDF >= 1.2
824   -WARNING: issue-335a.pdf (trailer, offset 1167): unexpected )
825   -WARNING: issue-335a.pdf (trailer, offset 1167): too many errors; giving up on reading object
826   -WARNING: issue-335a.pdf (trailer, offset 840): unknown token while reading object; treating as null
827   -WARNING: issue-335a.pdf (trailer, offset 856): unexpected )
828   -WARNING: issue-335a.pdf (trailer, offset 1019): unexpected )
829   -WARNING: issue-335a.pdf (trailer, offset 1163): unexpected )
830   -WARNING: issue-335a.pdf (trailer, offset 1164): name with stray # will not work with PDF >= 1.2
831   -WARNING: issue-335a.pdf (trailer, offset 1167): unexpected )
832   -WARNING: issue-335a.pdf (trailer, offset 1168): unexpected )
833   -WARNING: issue-335a.pdf (trailer, offset 1168): too many errors; giving up on reading object
834   -WARNING: issue-335a.pdf (trailer, offset 817): treating unexpected brace token as null
835   -WARNING: issue-335a.pdf (trailer, offset 818): unexpected )
836   -WARNING: issue-335a.pdf (trailer, offset 819): unknown token while reading object; treating as null
837   -WARNING: issue-335a.pdf (trailer, offset 820): unexpected )
838   -WARNING: issue-335a.pdf (trailer, offset 821): unexpected )
839   -WARNING: issue-335a.pdf (trailer, offset 822): name with stray # will not work with PDF >= 1.2
840   -WARNING: issue-335a.pdf (trailer, offset 825): unexpected )
841   -WARNING: issue-335a.pdf (trailer, offset 825): too many errors; giving up on reading object
842   -WARNING: issue-335a.pdf (trailer, offset 802): unknown token while reading object; treating as null
843   -WARNING: issue-335a.pdf (trailer, offset 819): unknown token while reading object; treating as null
844   -WARNING: issue-335a.pdf (trailer, offset 820): unexpected )
845   -WARNING: issue-335a.pdf (trailer, offset 821): unexpected )
846   -WARNING: issue-335a.pdf (trailer, offset 822): name with stray # will not work with PDF >= 1.2
847   -WARNING: issue-335a.pdf (trailer, offset 825): unexpected )
848   -WARNING: issue-335a.pdf (trailer, offset 826): unexpected )
849   -WARNING: issue-335a.pdf (trailer, offset 826): too many errors; giving up on reading object
850   -WARNING: issue-335a.pdf (trailer, offset 786): treating unexpected brace token as null
851   -WARNING: issue-335a.pdf (trailer, offset 787): unexpected )
852   -WARNING: issue-335a.pdf (trailer, offset 788): unexpected )
853   -WARNING: issue-335a.pdf (trailer, offset 821): unexpected )
854   -WARNING: issue-335a.pdf (trailer, offset 822): name with stray # will not work with PDF >= 1.2
855   -WARNING: issue-335a.pdf (trailer, offset 825): unexpected )
856   -WARNING: issue-335a.pdf (trailer, offset 826): unexpected )
857   -WARNING: issue-335a.pdf (trailer, offset 826): too many errors; giving up on reading object
858   -WARNING: issue-335a.pdf (trailer, offset 772): unknown token while reading object; treating as null
859   -WARNING: issue-335a.pdf (trailer, offset 788): unexpected )
860   -WARNING: issue-335a.pdf (trailer, offset 821): unexpected )
861   -WARNING: issue-335a.pdf (trailer, offset 822): name with stray # will not work with PDF >= 1.2
862   -WARNING: issue-335a.pdf (trailer, offset 825): unexpected )
863   -WARNING: issue-335a.pdf (trailer, offset 826): unexpected )
864   -WARNING: issue-335a.pdf (trailer, offset 1019): unexpected )
865   -WARNING: issue-335a.pdf (trailer, offset 1019): too many errors; giving up on reading object
866   -WARNING: issue-335a.pdf (trailer, offset 753): treating unexpected brace token as null
867   -WARNING: issue-335a.pdf (trailer, offset 754): unexpected )
868   -WARNING: issue-335a.pdf (trailer, offset 755): unknown token while reading object; treating as null
869   -WARNING: issue-335a.pdf (trailer, offset 756): unexpected )
870   -WARNING: issue-335a.pdf (trailer, offset 757): unexpected )
871   -WARNING: issue-335a.pdf (trailer, offset 758): unexpected )
872   -WARNING: issue-335a.pdf (trailer, offset 758): too many errors; giving up on reading object
873   -WARNING: issue-335a.pdf (trailer, offset 711): invalid character (<) in hexstring
874   -WARNING: issue-335a.pdf (trailer, offset 697): unknown token while reading object; treating as null
875   -WARNING: issue-335a.pdf (trailer, offset 758): unexpected )
876   -WARNING: issue-335a.pdf (trailer, offset 821): unexpected )
877   -WARNING: issue-335a.pdf (trailer, offset 822): name with stray # will not work with PDF >= 1.2
878   -WARNING: issue-335a.pdf (trailer, offset 825): unexpected )
879   -WARNING: issue-335a.pdf (trailer, offset 826): unexpected )
880   -WARNING: issue-335a.pdf (trailer, offset 1019): unexpected )
881   -WARNING: issue-335a.pdf (trailer, offset 1019): too many errors; giving up on reading object
882   -WARNING: issue-335a.pdf (trailer, offset 681): treating unexpected brace token as null
883   -WARNING: issue-335a.pdf (trailer, offset 682): unexpected )
884   -WARNING: issue-335a.pdf (trailer, offset 683): unexpected )
885   -WARNING: issue-335a.pdf (trailer, offset 821): unexpected )
886   -WARNING: issue-335a.pdf (trailer, offset 822): name with stray # will not work with PDF >= 1.2
887   -WARNING: issue-335a.pdf (trailer, offset 825): unexpected )
888   -WARNING: issue-335a.pdf (trailer, offset 826): unexpected )
889   -WARNING: issue-335a.pdf (trailer, offset 826): too many errors; giving up on reading object
890   -WARNING: issue-335a.pdf (trailer, offset 667): unknown token while reading object; treating as null
891   -WARNING: issue-335a.pdf (trailer, offset 683): unexpected )
892   -WARNING: issue-335a.pdf (trailer, offset 821): unexpected )
893   -WARNING: issue-335a.pdf (trailer, offset 822): name with stray # will not work with PDF >= 1.2
894   -WARNING: issue-335a.pdf (trailer, offset 825): unexpected )
895   -WARNING: issue-335a.pdf (trailer, offset 826): unexpected )
896   -WARNING: issue-335a.pdf (trailer, offset 1019): unexpected )
897   -WARNING: issue-335a.pdf (trailer, offset 1019): too many errors; giving up on reading object
898   -WARNING: issue-335a.pdf (trailer, offset 644): treating unexpected brace token as null
899   -WARNING: issue-335a.pdf (trailer, offset 645): unexpected )
900   -WARNING: issue-335a.pdf (trailer, offset 646): unknown token while reading object; treating as null
901   -WARNING: issue-335a.pdf (trailer, offset 647): unexpected )
902   -WARNING: issue-335a.pdf (trailer, offset 648): unexpected )
903   -WARNING: issue-335a.pdf (trailer, offset 649): name with stray # will not work with PDF >= 1.2
904   -WARNING: issue-335a.pdf (trailer, offset 652): unexpected )
905   -WARNING: issue-335a.pdf (trailer, offset 652): too many errors; giving up on reading object
906   -WARNING: issue-335a.pdf (trailer, offset 629): unknown token while reading object; treating as null
907   -WARNING: issue-335a.pdf (trailer, offset 646): unknown token while reading object; treating as null
908   -WARNING: issue-335a.pdf (trailer, offset 647): unexpected )
909   -WARNING: issue-335a.pdf (trailer, offset 648): unexpected )
910   -WARNING: issue-335a.pdf (trailer, offset 649): name with stray # will not work with PDF >= 1.2
911   -WARNING: issue-335a.pdf (trailer, offset 652): unexpected )
912   -WARNING: issue-335a.pdf (trailer, offset 653): unexpected )
913   -WARNING: issue-335a.pdf (trailer, offset 653): too many errors; giving up on reading object
914   -WARNING: issue-335a.pdf (trailer, offset 592): treating unexpected brace token as null
915   -WARNING: issue-335a.pdf (trailer, offset 593): unexpected )
916   -WARNING: issue-335a.pdf (trailer, offset 594): unknown token while reading object; treating as null
917   -WARNING: issue-335a.pdf (trailer, offset 595): unexpected )
918   -WARNING: issue-335a.pdf (trailer, offset 596): unexpected )
919   -WARNING: issue-335a.pdf (trailer, offset 597): name with stray # will not work with PDF >= 1.2
920   -WARNING: issue-335a.pdf (trailer, offset 600): unexpected )
921   -WARNING: issue-335a.pdf (trailer, offset 600): too many errors; giving up on reading object
922   -WARNING: issue-335a.pdf (trailer, offset 577): unknown token while reading object; treating as null
923   -WARNING: issue-335a.pdf (trailer, offset 594): unknown token while reading object; treating as null
924   -WARNING: issue-335a.pdf (trailer, offset 595): unexpected )
925   -WARNING: issue-335a.pdf (trailer, offset 596): unexpected )
926   -WARNING: issue-335a.pdf (trailer, offset 597): name with stray # will not work with PDF >= 1.2
927   -WARNING: issue-335a.pdf (trailer, offset 600): unexpected )
928   -WARNING: issue-335a.pdf (trailer, offset 601): unexpected )
929   -WARNING: issue-335a.pdf (trailer, offset 601): too many errors; giving up on reading object
930   -WARNING: issue-335a.pdf (trailer, offset 559): treating unexpected brace token as null
931   -WARNING: issue-335a.pdf (trailer, offset 560): unexpected )
932   -WARNING: issue-335a.pdf (trailer, offset 561): unknown token while reading object; treating as null
933   -WARNING: issue-335a.pdf (trailer, offset 562): unexpected )
934   -WARNING: issue-335a.pdf (trailer, offset 563): unexpected )
935   -WARNING: issue-335a.pdf (trailer, offset 596): unexpected )
936   -WARNING: issue-335a.pdf (trailer, offset 596): too many errors; giving up on reading object
937   -WARNING: issue-335a.pdf (trailer, offset 543): unknown token while reading object; treating as null
938   -WARNING: issue-335a.pdf (trailer, offset 561): unknown token while reading object; treating as null
939   -WARNING: issue-335a.pdf (trailer, offset 562): unexpected )
940   -WARNING: issue-335a.pdf (trailer, offset 563): unexpected )
941   -WARNING: issue-335a.pdf (trailer, offset 596): unexpected )
942   -WARNING: issue-335a.pdf (trailer, offset 597): name with stray # will not work with PDF >= 1.2
943   -WARNING: issue-335a.pdf (trailer, offset 600): unexpected )
944   -WARNING: issue-335a.pdf (trailer, offset 600): too many errors; giving up on reading object
945   -WARNING: issue-335a.pdf (trailer, offset 527): treating unexpected brace token as null
946   -WARNING: issue-335a.pdf (trailer, offset 528): unexpected )
947   -WARNING: issue-335a.pdf (trailer, offset 529): unexpected )
948   -WARNING: issue-335a.pdf (trailer, offset 563): unexpected )
949   -WARNING: issue-335a.pdf (trailer, offset 596): unexpected )
950   -WARNING: issue-335a.pdf (trailer, offset 597): name with stray # will not work with PDF >= 1.2
951   -WARNING: issue-335a.pdf (trailer, offset 600): unexpected )
952   -WARNING: issue-335a.pdf (trailer, offset 600): too many errors; giving up on reading object
953   -WARNING: issue-335a.pdf (trailer, offset 513): unknown token while reading object; treating as null
954   -WARNING: issue-335a.pdf (trailer, offset 529): unexpected )
955   -WARNING: issue-335a.pdf (trailer, offset 563): unexpected )
956   -WARNING: issue-335a.pdf (trailer, offset 596): unexpected )
957   -WARNING: issue-335a.pdf (trailer, offset 597): name with stray # will not work with PDF >= 1.2
958   -WARNING: issue-335a.pdf (trailer, offset 600): unexpected )
959   -WARNING: issue-335a.pdf (trailer, offset 601): unexpected )
960   -WARNING: issue-335a.pdf (trailer, offset 601): too many errors; giving up on reading object
961   -WARNING: issue-335a.pdf (trailer, offset 495): treating unexpected brace token as null
962   -WARNING: issue-335a.pdf (trailer, offset 496): unexpected )
963   -WARNING: issue-335a.pdf (trailer, offset 497): unknown token while reading object; treating as null
964   -WARNING: issue-335a.pdf (trailer, offset 498): unexpected )
965   -WARNING: issue-335a.pdf (trailer, offset 499): unexpected )
966   -WARNING: issue-335a.pdf (trailer, offset 563): unexpected )
967   -WARNING: issue-335a.pdf (trailer, offset 563): too many errors; giving up on reading object
968   -WARNING: issue-335a.pdf (trailer, offset 479): unknown token while reading object; treating as null
969   -WARNING: issue-335a.pdf (trailer, offset 497): unknown token while reading object; treating as null
970   -WARNING: issue-335a.pdf (trailer, offset 498): unexpected )
971   -WARNING: issue-335a.pdf (trailer, offset 499): unexpected )
972   -WARNING: issue-335a.pdf (trailer, offset 563): unexpected )
973   -WARNING: issue-335a.pdf (trailer, offset 596): unexpected )
974   -WARNING: issue-335a.pdf (trailer, offset 596): too many errors; giving up on reading object
975   -WARNING: issue-335a.pdf (trailer, offset 461): invalid character (<) in hexstring
976   -WARNING: issue-335a.pdf (trailer, offset 447): unknown token while reading object; treating as null
977   -WARNING: issue-335a.pdf (trailer, offset 450): unknown token while reading object; treating as null
978   -WARNING: issue-335a.pdf (trailer, offset 461): invalid character (<) in hexstring
979   -WARNING: issue-335a.pdf (trailer, offset 464): invalid character (¨) in hexstring
980   -WARNING: issue-335a.pdf (trailer, offset 499): unexpected )
981   -WARNING: issue-335a.pdf (trailer, offset 563): unexpected )
982   -WARNING: issue-335a.pdf (trailer, offset 563): too many errors; giving up on reading object
983   -WARNING: issue-335a.pdf (trailer, offset 431): treating unexpected brace token as null
984   -WARNING: issue-335a.pdf (trailer, offset 432): unexpected )
985   -WARNING: issue-335a.pdf (trailer, offset 433): unexpected )
986   -WARNING: issue-335a.pdf (trailer, offset 563): unexpected )
987   -WARNING: issue-335a.pdf (trailer, offset 596): unexpected )
988   -WARNING: issue-335a.pdf (trailer, offset 597): name with stray # will not work with PDF >= 1.2
989   -WARNING: issue-335a.pdf (trailer, offset 600): unexpected )
990   -WARNING: issue-335a.pdf (trailer, offset 600): too many errors; giving up on reading object
991   -WARNING: issue-335a.pdf (trailer, offset 417): unknown token while reading object; treating as null
992   -WARNING: issue-335a.pdf (trailer, offset 433): unexpected )
993   -WARNING: issue-335a.pdf (trailer, offset 563): unexpected )
994   -WARNING: issue-335a.pdf (trailer, offset 596): unexpected )
995   -WARNING: issue-335a.pdf (trailer, offset 597): name with stray # will not work with PDF >= 1.2
996   -WARNING: issue-335a.pdf (trailer, offset 600): unexpected )
997   -WARNING: issue-335a.pdf (trailer, offset 601): unexpected )
998   -WARNING: issue-335a.pdf (trailer, offset 601): too many errors; giving up on reading object
999   -WARNING: issue-335a.pdf (trailer, offset 395): unknown token while reading object; treating as null
1000   -WARNING: issue-335a.pdf (trailer, offset 401): unknown token while reading object; treating as null
1001   -WARNING: issue-335a.pdf (trailer, offset 402): unexpected )
1002   -WARNING: issue-335a.pdf (trailer, offset 403): unexpected )
1003   -WARNING: issue-335a.pdf (trailer, offset 563): unexpected )
1004   -WARNING: issue-335a.pdf (trailer, offset 596): unexpected )
1005   -WARNING: issue-335a.pdf (trailer, offset 596): too many errors; giving up on reading object
1006   -qpdf: issue-335a.pdf: too many errors while reconstructing cross-reference table
  657 +qpdf: issue-335a.pdf: unable to find trailer dictionary while recovering damaged file
... ...