Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Issue 2030953003: Fixup FPDFAvail_IsPageAvail checks in PDFiumEngine. (Closed)

Created:
4 years, 6 months ago by dsinclair
Modified:
4 years, 6 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixup FPDFAvail_IsPageAvail checks in PDFiumEngine. There are two issues with the use of FPDFAvail_IsPageAvail checks. First, we need to compare the results against PDF_DATA_AVAIL and not just take the negation as that means ERROR will mark the page as available. Second, when we finish loading, we have to take the actual return value into account instead of assuming the page is loaded correctly. BUG=614211

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M pdf/pdfium/pdfium_engine.cc View 2 chunks +9 lines, -2 lines 1 comment Download

Messages

Total messages: 8 (2 generated)
dsinclair
PTAL. https://codereview.chromium.org/2030953003/diff/20001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/2030953003/diff/20001/pdf/pdfium/pdfium_engine.cc#newcode1102 pdf/pdfium/pdfium_engine.cc:1102: while (true) { This is probably bad, and ...
4 years, 6 months ago (2016-06-02 18:03:25 UTC) #3
dsinclair
On 2016/06/02 18:03:25, dsinclair wrote: > PTAL. > > https://codereview.chromium.org/2030953003/diff/20001/pdf/pdfium/pdfium_engine.cc > File pdf/pdfium/pdfium_engine.cc (right): > ...
4 years, 6 months ago (2016-06-07 13:32:03 UTC) #4
Lei Zhang
On 2016/06/07 13:32:03, dsinclair wrote: > On 2016/06/02 18:03:25, dsinclair wrote: > > PTAL. > ...
4 years, 6 months ago (2016-06-08 02:06:19 UTC) #5
dsinclair
On 2016/06/08 02:06:19, Lei Zhang (Slow) wrote: > On 2016/06/07 13:32:03, dsinclair wrote: > > ...
4 years, 6 months ago (2016-06-08 02:07:57 UTC) #6
Lei Zhang
I tried to check the FPDFAvail_IsPageAvail() results in https://codereview.chromium.org/1550193002/ and ran into trouble as well. ...
4 years, 6 months ago (2016-06-08 07:11:18 UTC) #7
Lei Zhang
4 years, 6 months ago (2016-06-08 07:34:44 UTC) #8
On 2016/06/08 07:11:18, Lei Zhang (Slow) wrote:
> I tried to check the FPDFAvail_IsPageAvail() results in
> https://codereview.chromium.org/1550193002/ and ran into trouble as well.
While
> this is something we should fix, I don't think it's the cause of your bug.
I'll
> post a PDFium CL shortly for the bug.

"shortly" -> https://codereview.chromium.org/2045013004/

Powered by Google App Engine
This is Rietveld 408576698