summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-06-26Import Chromium base/numerics to resolve integer overflow.Chris Palmer
We'll use this for integer overflows going forward. BUG=382606 R=jam@chromium.org Review URL: https://codereview.chromium.org/349363005
2014-06-26Explicitly use binary mode when opening files in the pdfium_test sample.John Abd-El-Malek
This patch adds the 'b' (binary mode) flag to the fopen calls. Before the fix the PPM images written with --write_images were corrupted under Windows because on this platform in text mode all occurrences of the byte 0xa (line feed) are replaced with the bytes 0x0d (carriage return) and 0x0a (line feed). On UNIX platforms the 'b' flag is supported but ignored, because no translation of the line feed character takes place. BUG=18 R=jam@chromium.org Original patch by Michael Doppler <m.doppler@gmail.com> Review URL: https://codereview.chromium.org/343303004
2014-06-24Fix and integer overflow issue in SDK's QuickSortBo Xu
BUG=382639 R=mdempsky@chromium.org Review URL: https://codereview.chromium.org/354673002
2014-06-23Revert "Import Chromium base/numerics to resolve integer overflow."John Abd-El-Malek
This reverts commit d9713f05fdcecab8428d39034c6b84cd0bbd2920. This is breaking compile.
2014-06-20BUG=382241foxit
R=palmer@chromium.org Review URL: https://codereview.chromium.org/331123002
2014-06-20Fix a crash in CFXMEM_FixedMgr::AllocLargefoxit
BUG=382243 R=palmer@chromium.org Review URL: https://codereview.chromium.org/333213002
2014-06-20Stack-buffer-overflow in IccLib_Translatefoxit
BUG=382240 R=palmer@chromium.org Review URL: https://codereview.chromium.org/332143002
2014-06-20Import Chromium base/numerics to resolve integer overflow.Chris Palmer
We'll use this for integer overflows going forward. BUG=382606 R=bo_xu@foxitsoftware.com, jschuh@chromium.org Review URL: https://codereview.chromium.org/341533007
2014-06-19Fix JS_WIDESTRING to work with clang-clJohn Abd-El-Malek
MSVC lexes L#macro_arg as a single wide string literal token, but Clang and other C/C++ compliant lexers do not. There was already a workaround to use implicit string concatenation for GCC, but there's a simpler solution of token pasting the L onto the stringized macro argument with 'L###macro_arg'. This works with Clang, GCC, and MSVC. R=jun_fang@foxitsoftware.com, jam@chromium.org BUG=82385 Original patch by Reid Kleckner <rnk@chromium.org> Review URL: https://codereview.chromium.org/345643002
2014-06-12resolve symbol collsion with zlib 1.2.8Bo Xu
R=jam@chromium.org Review URL: https://codereview.chromium.org/330023004
2014-06-12Add FPDFPage_SetRotation functionBo Xu
R=jam@chromium.org Review URL: https://codereview.chromium.org/336563004
2014-06-12Enable security removal in FPDF_Doc_SaveBo Xu
R=jam@chromium.org Review URL: https://codereview.chromium.org/333753002
2014-06-11Bring back the Skia files from the old repo.John Abd-El-Malek
BUG=11
2014-06-10BUG=379656foxit
R=palmer@chromium.org Review URL: https://codereview.chromium.org/320223003
2014-06-09free, rather than delete, malloc'd object.chromium/2076chromium/2075chromium/2074chromium/2073chromium/2072chromium/2071chromium/2070chromium/2069chromium/2068chromium/2067chromium/2066chromium/2065chromium/2064chromium/2063chromium/2061chromium/2060chromium/2059chromium/2058chromium/2057chromium/2056chromium/2055chromium/2054chromium/2053chromium/2052chromium/2051chromium/2050chromium/2049chromium/2048chromium/2047chromium/2046chromium/2045chromium/2044John Abd-El-Malek
BUG=381031 Original patch by Chris Palmer <palmer@chromium.org> Review URL: https://codereview.chromium.org/322453002
2014-06-09Disable pointer-to-int conversion warning.John Abd-El-Malek
In this case the warning is benign. Original patch by Brett Wilson <brettw@chromium.org> R=jam@chromium.org Review URL: https://codereview.chromium.org/319033002
2014-06-09Fix a crash when parsing truetype fonts without any tables.Lei Zhang
BUG=chromium:381011 R=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/317203003
2014-06-08Use none SSE functions when data is not 16 byte alignedchromium/2043chromium/2042chromium/2041foxit
BUG= R=jabdelmalek@google.com Review URL: https://codereview.chromium.org/318593002
2014-06-05Add GN build file for pdfium, rename GYP target.chromium/2040chromium/2039chromium/2038chromium/2037chromium/2036chromium/2035chromium/2034John Abd-El-Malek
The GYP target is now called "pdfium" rather than "fpdfsdk". Original pach by Brett Wilson <brettw@chromium.org>
2014-06-05fix two uninitialized readsJohn Abd-El-Malek
https://code.google.com/p/pdfium/issues/detail?id=9 https://code.google.com/p/pdfium/issues/detail?id=10 BUG= R=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/312273002
2014-06-04Use unsigned type for iteration to avoid int overflow.John Abd-El-Malek
If src_len in PDF_DecodeText is larger than 2^31, 2 * max_chars will overflow and the function will produce an incorrect result. BUG=none R=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/306923006
2014-06-04Wrong variable assignment in Pdfium.John Abd-El-Malek
CID=115579 Original patch by Finnur Thorarinsson <finnur@chromium.org>
2014-05-29In linux and mac, use Arial to replace Tahoma for displaying east europe ↵chromium/2033chromium/2032chromium/2031chromium/2030chromium/2029chromium/2028chromium/2027chromium/2026chromium/2025chromium/2024chromium/2023Bo Xu
characters BUG= Review URL: https://codereview.chromium.org/301263002
2014-05-29Fix xcode build.John Abd-El-Malek
R=thakis@chromium.org Review URL: https://codereview.chromium.org/300993002
2014-05-28Followup comments from https://codereview.chromium.org/298893007/John Abd-El-Malek
R=thakis@chromium.org Review URL: https://codereview.chromium.org/302653009
2014-05-28Fix a security issue in FPDF_GetMetaTextBo Xu
BUG=security Review URL: https://codereview.chromium.org/307653002
2014-05-28Do not use FX_BOOL for int values.Bo Xu
BUG=none R=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/300063015
2014-05-27Fix licenses in headers to pass Chromium's checklicenses tool.Lei Zhang
BUG=chromium:374943 R=jam@chromium.org Review URL: https://codereview.chromium.org/303723004
2014-05-27Add Lei to AUTHORSJohn Abd-El-Malek
2014-05-27adjust output dir for msvs to fix msvs link errorBo Xu
BUG=msvs build R=jam@chromium.org Review URL: https://codereview.chromium.org/295323004
2014-05-27Change cc list to be pdfium-reviews@googlegroups.comJohn Abd-El-Malek
2014-05-27Use unsigned type for decoding in _A85Decode.Bo Xu
The local variable res can overflow over 2^31-1 and so we must use unsigned type for decoding. BUG=none R=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/288983009
2014-05-27Fix memory leak on array size overflow.Bo Xu
BUG=none R=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/300023002
2014-05-26Fix build error on Windows stand alone build.John Abd-El-Malek
R=scottmg@chromium.org Review URL: https://codereview.chromium.org/299353008
2014-05-26Fix build error on win x64.chromium/2022chromium/2021chromium/2020chromium/2019chromium/2018chromium/2017chromium/2016chromium/2015John Abd-El-Malek
2014-05-26Move linker settings from standalone.gypi to pdfium.gyp, since they're ↵John Abd-El-Malek
needed when linking pdfium_test as part of other projects' gyp files as well where standalone.gypi isn't used. R=scottmg@chromium.org Review URL: https://codereview.chromium.org/302453004
2014-05-24Fix warnings in android build, fix font rendering issue, fix issue 357588: ↵Bo Xu
wrong characters representation, and addjust some code indent BUG= R=jam@chromium.org Review URL: https://codereview.chromium.org/294353002
2014-05-24Fix a typo with PAGEMODE_UNKNOWN.Lei Zhang
R=jam@chromium.org Review URL: https://codereview.chromium.org/297993002
2014-05-23Switch include paths to fpdfsdk back to be relative so that pdfium_test can ↵John Abd-El-Malek
be built from a Chromium checkout.
2014-05-23Remove gcctest target which is not needed anymore.John Abd-El-Malek
Original patch by Andrey Khalyavin <halyavin@chromium.org>
2014-05-23remove Microsoft SDKJohn Abd-El-Malek
Original patch by Lucas Nihlen <luken@chromium.org>
2014-05-23Add a .gitattributes with "* text=auto" so that new lines areJohn Abd-El-Malek
automatically converted to the native platform's format on checkout but are committed as "LF". BUG=375516 Original patch from Julien Tinnes <jln@chromium.org>
2014-05-23Convert all line endings to LF.John Abd-El-Malek
2014-05-23Fix line endings.John Abd-El-Malek
2014-05-23Add execute permission to scriptJohn Abd-El-Malek
2014-05-23Create a standalone pdfium build.John Abd-El-Malek
I moved pdfium_test from chromium's repo to pdfium's. It's now buildable as a sample following the instructions on the wiki.
2014-05-22Revert the changes to pdfium.gyp in 4db62f5. To completely fix all the ↵chromium/2014chromium/2013John Abd-El-Malek
errors on all platforms we'd have to make changes to third party libraries. Some of those libraries are already shipped in chrome, and if we are going to want to share them we don't want them to diverge.
2014-05-21Add Nico to AUTHORS.John Abd-El-Malek
2014-05-21Don't remove -Wheader-hygiene for pdfium, 41f0590a9d7 fixed all violations.Nico Weber
BUG=375558
2014-05-21Add Raymes to AUTHORSJohn Abd-El-Malek