mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
e7f7c434f7
Several files have a comment after the trailer dict and the `startxref` after it. We really should add a consume_whitespace_and_comments() function and call that in most places we currently call consume_whitespace(). But in this case, for non-linearized files, we first jump to the end of the file, read `startxref`, then jump to `xref` from the offset there, and then read the trailer after the `xref`, only to read `startxref` again. So we can just not do that. (For linearized files, we now completely ignore `startxref`. But we don't use the data in `startxref` in linearized files anyways, so it's fine to not read it there too.) Reduces number of crashes on 300 random PDFs from the web (the first 300 from 0000.zip from https://pdfa.org/new-large-scale-pdf-corpus-now-publicly-available/) from 25 (8%) to 23 (7%). |
||
---|---|---|
.. | ||
LibArchive | ||
LibAudio | ||
LibC | ||
LibCards | ||
LibChess | ||
LibCMake | ||
LibCodeComprehension | ||
LibCompress | ||
LibConfig | ||
LibCore | ||
LibCoredump | ||
LibCpp | ||
LibCrypt | ||
LibCrypto | ||
LibDebug | ||
LibDesktop | ||
LibDeviceTree | ||
LibDiff | ||
LibDNS | ||
LibDSP | ||
LibEDID | ||
LibELF | ||
LibFileSystem | ||
LibFileSystemAccessClient | ||
LibGemini | ||
LibGfx | ||
LibGL | ||
LibGLSL | ||
LibGPU | ||
LibGUI | ||
LibHTTP | ||
LibIDL | ||
LibImageDecoderClient | ||
LibIMAP | ||
LibIPC | ||
LibJS | ||
LibKeyboard | ||
LibLine | ||
LibLocale | ||
LibMain | ||
LibManual | ||
LibMarkdown | ||
LibPartition | ||
LibPCIDB | ||
LibPDF | ||
LibProtocol | ||
LibRegex | ||
LibSanitizer | ||
LibSoftGPU | ||
LibSQL | ||
LibSymbolication | ||
LibSyntax | ||
LibSystem | ||
LibTest | ||
LibTextCodec | ||
LibThreading | ||
LibTimeZone | ||
LibTLS | ||
LibUnicode | ||
LibUSBDB | ||
LibVideo | ||
LibVirtGPU | ||
LibVT | ||
LibWasm | ||
LibWeb | ||
LibWebSocket | ||
LibWebView | ||
LibX86 | ||
LibXML | ||
CMakeLists.txt |