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

Issue 2430743003: in the attempt to fix 627393, changed IFX_FileRead's readBlock to return the length it reads

Created:
4 years, 2 months ago by hong_zhang
Modified:
4 years, 1 month ago
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

in the attempt to fix 627393, changed IFX_FileRead's readBlock to return the length it reads BUG=627393

Patch Set 1 #

Patch Set 2 : remove .tmp files #

Total comments: 6

Patch Set 3 : remove FX_BOOL, merge latest code base, etc. #

Patch Set 4 : delete the include folder #

Total comments: 7

Patch Set 5 : taking care of short reads #

Patch Set 6 : fix an undefined variable #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -133 lines) Patch
M core/fpdfapi/edit/fpdf_edit_create.cpp View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M core/fpdfapi/parser/cpdf_data_avail.cpp View 1 2 3 4 3 chunks +9 lines, -5 lines 0 comments Download
M core/fpdfapi/parser/cpdf_parser.cpp View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M core/fpdfapi/parser/cpdf_parser_unittest.cpp View 1 2 3 4 1 chunk +12 lines, -7 lines 0 comments Download
M core/fpdfapi/parser/cpdf_stream.cpp View 1 2 1 chunk +1 line, -1 line 1 comment Download
M core/fpdfapi/parser/cpdf_syntax_parser.cpp View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M core/fpdfapi/parser/fpdf_parser_utility.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M core/fxcodec/codec/fx_codec_progress.cpp View 1 2 3 4 5 9 chunks +35 lines, -27 lines 4 comments Download
M core/fxcodec/codec/fx_codec_tiff.cpp View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M core/fxcrt/extension.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M core/fxcrt/fx_extension.cpp View 1 2 4 chunks +14 lines, -13 lines 0 comments Download
M core/fxcrt/fx_stream.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M core/fxcrt/fx_xml_parser.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M core/fxge/android/cfpf_skiafontmgr.cpp View 1 2 3 4 1 chunk +4 lines, -2 lines 1 comment Download
M core/fxge/ge/cfx_font.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/fpdf_dataavail.cpp View 1 2 2 chunks +18 lines, -5 lines 1 comment Download
M fpdfsdk/fpdfview.cpp View 1 2 5 chunks +31 lines, -21 lines 1 comment Download
M fpdfsdk/fsdk_define.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M testing/libfuzzer/xfa_codec_fuzzer.h View 1 2 3 1 chunk +12 lines, -7 lines 0 comments Download
M xfa/fde/xml/cfx_saxreader.cpp View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M xfa/fgas/crt/fgas_stream.cpp View 1 2 3 4 4 chunks +17 lines, -7 lines 0 comments Download
M xfa/fgas/font/fgas_stdfontmgr.cpp View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M xfa/fxfa/app/xfa_ffapp.cpp View 1 2 2 chunks +16 lines, -10 lines 0 comments Download
M xfa/fxfa/xfa_ffapp.h View 1 2 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
hong_zhang
Hi all, As mentioned in the email, I changes the IFX_FileRead's ReadBlock to return a ...
4 years, 2 months ago (2016-10-19 03:06:11 UTC) #7
Tom Sepez
This is all good, and should solve a lot of potential problems. All that remains ...
4 years, 2 months ago (2016-10-19 23:12:48 UTC) #8
hong_zhang
Dear all, I made a couple changes addressing Tom's previous comments, and also merged newer ...
4 years, 1 month ago (2016-11-12 00:41:22 UTC) #9
Tom Sepez
Pls take another look at this, I suspect any place we're not capturing the return ...
4 years, 1 month ago (2016-11-14 20:27:40 UTC) #10
hong_zhang
We took care of the short read issue. PTAL.
4 years, 1 month ago (2016-11-15 02:13:22 UTC) #12
Tom Sepez
Getting closer, but still some bugs I think. https://codereview.chromium.org/2430743003/diff/120001/core/fpdfapi/parser/cpdf_stream.cpp File core/fpdfapi/parser/cpdf_stream.cpp (right): https://codereview.chromium.org/2430743003/diff/120001/core/fpdfapi/parser/cpdf_stream.cpp#newcode108 core/fpdfapi/parser/cpdf_stream.cpp:108: return ...
4 years, 1 month ago (2016-11-16 18:32:01 UTC) #13
Tom Sepez
Also, I was concerned that we didn't have any unit tests for this, so I'm ...
4 years, 1 month ago (2016-11-18 21:55:55 UTC) #14
hong_zhang
4 years, 1 month ago (2016-11-18 23:46:29 UTC) #15
On 2016/11/18 21:55:55, Tom Sepez wrote:
> Also, I was concerned that we didn't have any unit tests for this, so I'm in
the
> process of adding at least one at 
> https://codereview.chromium.org/2517513003

Sure we will make sure to test with the unit test.

Powered by Google App Engine
This is Rietveld 408576698