|
|
Detect resursive loading of type3 font char to avoid infinite loop
The original way of detecting loops was passing a level parameter
through various functions. This missed some cases which also lead
to load type3 font char, for example, FindFont() may call
CheckType3FontMetrics() which may eventually lead to LoadChar().
The new way is to store the char loading depth, and abort when the depth
exceeds the max.
BUG= chromium:651304
Committed: https://pdfium.googlesource.com/pdfium/+/d61f958385be285f3f3897ef3a3f010048608f1c
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+32 lines, -29 lines) |
Patch |
 |
M |
core/fpdfapi/fpdf_font/cpdf_cidfont.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
core/fpdfapi/fpdf_font/cpdf_cidfont.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
core/fpdfapi/fpdf_font/cpdf_font.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
core/fpdfapi/fpdf_font/cpdf_simplefont.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
core/fpdfapi/fpdf_font/cpdf_simplefont.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
core/fpdfapi/fpdf_font/cpdf_type3font.h
|
View
|
1
2
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
core/fpdfapi/fpdf_font/cpdf_type3font.cpp
|
View
|
1
2
|
4 chunks |
+11 lines, -8 lines |
0 comments
|
Download
|
 |
M |
core/fpdfapi/fpdf_page/cpdf_textobject.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
core/fpdfapi/fpdf_page/cpdf_textobject.cpp
|
View
|
|
4 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
core/fpdfapi/fpdf_page/fpdf_page_parser.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 22 (15 generated)
|