{"push_id":1363244214,"size":1,"distinct_size":1,"ref":"refs/heads/PDFLinkService_navigateTo-more-validation","head":"b480de95ddc2c9ef3686affc07cb0f65d8219a2a","before":"a2ff3036cfcca3db36d81e9d4c133aa1762020b1","commits":[{"sha":"b480de95ddc2c9ef3686affc07cb0f65d8219a2a","author":{"name":"Jonas Jenwald","email":"bbd857ad5277dd198029c09f6d4b8824489d8ede@gmail.com"},"message":"Add more validation to `PDFLinkService_navigateTo`\n\nIn some PDF files, the first element (i.e. the one containing either a `Ref` or a `Number` pointing to a page) of the explicit destination Array may be bogus.\n\nOne such example is actually the file `pdf.pdf` in the test-suite, where some destinations are incompletely specified. One such example being the `G1.998360` destionation whose explicit destination Array contains `[null, /XYZ, 54, 488, null]`, i.e. the destination page is `null`.\n\nHence this patch adds a bit more validation for that case, and also an additional check to ensure that the resulting `pageNumber` is non-negative.","distinct":true,"url":"https://api.github.com/repos/Snuffleupagus/pdf.js/commits/b480de95ddc2c9ef3686affc07cb0f65d8219a2a"}]}
{"actor":{"display_login":"Snuffleupagus"}}