Open GoogleCodeExporter opened 9 years ago
Original comment by breidenb...@gmail.com
on 4 Sep 2015 at 12:02
Attachments:
Original comment by thestig@chromium.org
on 4 Sep 2015 at 11:22
FPDFText_CountChars() is returning 0 in the failure case.
Original comment by jbrei...@google.com
on 4 Sep 2015 at 5:35
I think the problem is in this file, which is full of thresholds like 0.01 and
0.001 that are probably getting confused by rotated text.
https://pdfium.googlesource.com/pdfium/+/master/core/src/fpdftext/fpdf_text_int.
cpp
Original comment by jbrei...@google.com
on 4 Sep 2015 at 5:42
I've isolated the problem down the the thresholding at the beginning of both
ProcessTextObject() methods. They are at line 1480 and 1246 of
fpdf_text_int.cpp.
if (FXSYS_fabs(pTextObj->m_Right - pTextObj->m_Left) < 0.01f) {
return;
}
Original comment by jbrei...@google.com
on 4 Sep 2015 at 6:05
This patch does the trick for my document, but I don't know if this will expose
us to trouble from malicious documents.
Original comment by jbrei...@google.com
on 4 Sep 2015 at 6:53
Attachments:
Original issue reported on code.google.com by
breidenb...@gmail.com
on 4 Sep 2015 at 12:01