Index: pdf/pdfium/pdfium_page.cc |
=================================================================== |
--- pdf/pdfium/pdfium_page.cc (revision 275112) |
+++ pdf/pdfium/pdfium_page.cc (working copy) |
@@ -390,7 +390,7 @@ |
int url_length = FPDFLink_GetURL(links, i, NULL, 0); |
if (url_length > 0) { |
Lei Zhang
2014/06/05 22:26:21
This needs to be url_length > 1 because WriteInto(
jam
2014/06/06 01:17:51
actually, i looked more and the bug is in pdfium.
jam
2014/06/06 03:19:04
Done.
|
unsigned short* data = |
- reinterpret_cast<unsigned short*>(WriteInto(&url, url_length + 1)); |
+ reinterpret_cast<unsigned short*>(WriteInto(&url, url_length)); |
FPDFLink_GetURL(links, i, data, url_length); |
} |
Link link; |