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

Issue 1297723002: CFX_MapByteStringToPtr considered harmful. (Closed)

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

Description

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Separate reload & delete. #

Total comments: 35

Patch Set 4 : Comments. #

Total comments: 3

Patch Set 5 : Const auto& #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -540 lines) Patch
M core/include/fxcrt/fx_basic.h View 1 2 3 1 chunk +0 lines, -69 lines 0 comments Download
M core/include/fxge/fx_font.h View 1 2 3 4 chunks +10 lines, -6 lines 0 comments Download
M core/src/fpdfapi/fpdf_font/font_int.h View 1 2 3 2 chunks +14 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp View 1 2 3 4 2 chunks +18 lines, -33 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp View 2 chunks +8 lines, -13 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/pageint.h View 1 chunk +1 line, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp View 1 2 3 4 2 chunks +9 lines, -10 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/render_int.h View 1 2 3 3 chunks +7 lines, -4 lines 0 comments Download
M core/src/fxcodec/codec/codec_int.h View 1 2 3 2 chunks +10 lines, -5 lines 0 comments Download
M core/src/fxcodec/codec/fx_codec_icc.cpp View 1 2 3 4 4 chunks +14 lines, -15 lines 0 comments Download
M core/src/fxcrt/fx_basic_maps.cpp View 1 2 3 2 chunks +0 lines, -192 lines 0 comments Download
M core/src/fxge/ge/fx_ge_fontmap.cpp View 1 2 3 4 12 chunks +54 lines, -59 lines 0 comments Download
M core/src/fxge/ge/fx_ge_linux.cpp View 1 2 3 3 chunks +23 lines, -24 lines 0 comments Download
M core/src/fxge/ge/fx_ge_text.cpp View 1 2 3 4 2 chunks +10 lines, -11 lines 0 comments Download
M fpdfsdk/include/fsdk_annothandler.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M fpdfsdk/include/javascript/global.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M fpdfsdk/src/fsdk_annothandler.cpp View 2 chunks +6 lines, -12 lines 0 comments Download
M fpdfsdk/src/javascript/global.cpp View 1 2 3 4 9 chunks +55 lines, -81 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
Tom Sepez
Lei, this will take some inspection :(.
5 years, 4 months ago (2015-08-14 20:36:16 UTC) #2
Lei Zhang
Ya, this will take a while. I'm going through them... https://codereview.chromium.org/1297723002/diff/40001/fpdfsdk/src/javascript/global.cpp File fpdfsdk/src/javascript/global.cpp (right): https://codereview.chromium.org/1297723002/diff/40001/fpdfsdk/src/javascript/global.cpp#newcode184 ...
5 years, 4 months ago (2015-08-14 23:59:35 UTC) #3
Lei Zhang
https://codereview.chromium.org/1297723002/diff/40001/core/src/fpdfapi/fpdf_font/font_int.h File core/src/fpdfapi/fpdf_font/font_int.h (right): https://codereview.chromium.org/1297723002/diff/40001/core/src/fpdfapi/fpdf_font/font_int.h#newcode8 core/src/fpdfapi/fpdf_font/font_int.h:8: I feel like we need some #includes here. https://codereview.chromium.org/1297723002/diff/40001/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp ...
5 years, 4 months ago (2015-08-15 00:35:44 UTC) #4
Lei Zhang
Maybe we should document the maps to indicate whether the is pointers are never NULL. ...
5 years, 4 months ago (2015-08-15 00:47:33 UTC) #5
Tom Sepez
https://codereview.chromium.org/1297723002/diff/40001/core/include/fxcrt/fx_basic.h File core/include/fxcrt/fx_basic.h (left): https://codereview.chromium.org/1297723002/diff/40001/core/include/fxcrt/fx_basic.h#oldcode762 core/include/fxcrt/fx_basic.h:762: void AddValue(const CFX_ByteStringC& key, void* pValue); On 2015/08/15 00:47:33, ...
5 years, 4 months ago (2015-08-17 20:15:26 UTC) #6
Tom Sepez
https://codereview.chromium.org/1297723002/diff/60001/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp File core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp (right): https://codereview.chromium.org/1297723002/diff/60001/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp#newcode25 core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp:25: for (auto& pair : m_CMaps) { nit: Should these ...
5 years, 4 months ago (2015-08-17 20:20:18 UTC) #7
Lei Zhang
lgtm https://codereview.chromium.org/1297723002/diff/60001/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp File core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp (right): https://codereview.chromium.org/1297723002/diff/60001/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp#newcode25 core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp:25: for (auto& pair : m_CMaps) { On 2015/08/17 ...
5 years, 4 months ago (2015-08-17 22:05:03 UTC) #8
Tom Sepez
https://codereview.chromium.org/1297723002/diff/60001/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp File core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp (right): https://codereview.chromium.org/1297723002/diff/60001/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp#newcode67 core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp:67: for (auto it = m_CMaps.begin(); it != m_CMaps.end(); ++it) ...
5 years, 4 months ago (2015-08-17 23:20:39 UTC) #9
Tom Sepez
Committed patchset #5 (id:80001) manually as ce4ffb8183af3fa2bb5133f0f7370a88e064c516 (presubmit successful).
5 years, 4 months ago (2015-08-17 23:26:07 UTC) #10
Lei Zhang
5 years, 4 months ago (2015-08-17 23:30:25 UTC) #11
Message was sent while issue was closed.
Looks like we have more work in fx_mac_imp.cpp. Too bad we don't have try bots.

Powered by Google App Engine
This is Rietveld 408576698