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

Issue 1360103002: Get rid of gotos in CPDF_SyntaxParser and FlateUncompress(). (Closed)

Created:
5 years, 3 months ago by Lei Zhang
Modified:
5 years, 2 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Get rid of gotos in CPDF_SyntaxParser and FlateUncompress(). R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/b8a074711108baf04017d86207e08c19ff327d8e

Patch Set 1 #

Total comments: 23

Patch Set 2 : address comments, more cleanups #

Total comments: 22

Patch Set 3 : address comments #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+322 lines, -331 lines) Patch
M core/include/fpdfapi/fpdf_parser.h View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M core/include/fxcrt/fx_basic.h View 1 2 3 4 1 chunk +4 lines, -6 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp View 1 2 3 4 5 26 chunks +150 lines, -177 lines 0 comments Download
M core/src/fxcodec/codec/fx_codec_flate.cpp View 1 2 3 4 5 11 chunks +162 lines, -144 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Lei Zhang
https://codereview.chromium.org/1360103002/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp File core/src/fxcodec/codec/fx_codec_flate.cpp (right): https://codereview.chromium.org/1360103002/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp#newcode617 core/src/fxcodec/codec/fx_codec_flate.cpp:617: void FlateUncompress(const uint8_t* src_buf, A bit harder to see ...
5 years, 3 months ago (2015-09-23 19:22:28 UTC) #2
Tom Sepez
I think the logic is OK https://codereview.chromium.org/1360103002/diff/1/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp (right): https://codereview.chromium.org/1360103002/diff/1/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp#newcode597 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp:597: if (streampos && ...
5 years, 3 months ago (2015-09-23 21:48:41 UTC) #3
Lei Zhang
https://codereview.chromium.org/1360103002/diff/1/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp (right): https://codereview.chromium.org/1360103002/diff/1/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp#newcode597 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp:597: if (streampos && !LoadCrossRefV5(streampos, streampos, FALSE)) On 2015/09/23 21:48:41, ...
5 years, 2 months ago (2015-09-25 09:33:49 UTC) #4
Tom Sepez
https://codereview.chromium.org/1360103002/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp File core/src/fxcodec/codec/fx_codec_flate.cpp (right): https://codereview.chromium.org/1360103002/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp#newcode643 core/src/fxcodec/codec/fx_codec_flate.cpp:643: guess_buf.get()[guess_size] = '\0'; On 2015/09/25 09:33:48, Lei Zhang wrote: ...
5 years, 2 months ago (2015-09-25 16:25:35 UTC) #5
Lei Zhang
https://codereview.chromium.org/1360103002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp (right): https://codereview.chromium.org/1360103002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp#newcode20 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp:20: int _CompareFileSize(const void* p1, const void* p2) { On ...
5 years, 2 months ago (2015-09-25 22:04:07 UTC) #6
Lei Zhang
ping
5 years, 2 months ago (2015-10-02 02:08:03 UTC) #7
Tom Sepez
lgtm https://codereview.chromium.org/1360103002/diff/40001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp (right): https://codereview.chromium.org/1360103002/diff/40001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp#newcode22 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp:22: return ret == 0 ? 0 : ret; ...
5 years, 2 months ago (2015-10-02 17:23:46 UTC) #8
Lei Zhang
https://codereview.chromium.org/1360103002/diff/40001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp (right): https://codereview.chromium.org/1360103002/diff/40001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp#newcode22 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp:22: return ret == 0 ? 0 : ret; On ...
5 years, 2 months ago (2015-10-02 18:26:53 UTC) #9
Lei Zhang
5 years, 2 months ago (2015-10-02 18:27:01 UTC) #10
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
b8a074711108baf04017d86207e08c19ff327d8e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698