aboutsummaryrefslogtreecommitdiff
path: root/cpp
AgeCommit message (Collapse)Author
2017-03-20Add missing #include <unicode/unistr.h> statement.Fredrik Roubert
This is needed for the declaration of UnicodeString, which currently happens to be reached through transitive dependencies (but that will change in future versions of ICU). Test: mmma external/sfntly Change-Id: Idd6267519d16541a9a4c5e0468fe14c1724e2a3f
2016-12-06Merge remote-tracking branch 'aosp/upstream-master' into masterColin Cross
Bug: 32096780 Test: mmma -j external/skia Change-Id: Ia60d7b9984c1007e82bfea10c1a6df32418100d5
2016-10-28Fix invalid cast found by Control Flow Integrity.Lei Zhang
Instead of casting RefCounted objects to type NoAddRefRelease, make AddRef() and Release() private methods that are only accessible to a limited number of friends. Fixes https://crbug.com/517959
2016-10-25Fix breakage from commit 083b02b1.Lei Zhang
While the previous commit fixed NULL pointer deferences, it also returned NULL pointers for some tables that needed to be set. As a result, sfntly failed to generate correct output, as seen in https://crbug.com/659006.
2016-10-19Fix undefined shifts in ReadableFontData::ReadShort.Lei Zhang
Shifting a negative value is undefined behavior. Fixes https://crbug.com/655914
2016-10-19Check for negative size in NameTable::NameAsBytes.Lei Zhang
Fixes https://crbug.com/654663
2016-10-19Avoid NULL derefs inside FontHeaderTable::Builder.Lei Zhang
As a result IndexToLocFormat() should also return an invalid value. Fixes https://crbug.com/646347
2016-10-19Fix undefined shifts in ReadableFontData::ReadLong.Lei Zhang
Fixes https://crbug.com/646300
2016-10-19Fix NULL pointer derefs in sfntly::Font::Builder.Lei Zhang
Fixes https://crbug.com/641452
2016-10-19Fix out of bound access in subtly sample program.Lei Zhang
Fixes https://crbug.com/638573
2016-09-07Add missing header from commit c9025ecc.Lei Zhang
2016-09-07Add ReadableFontData::kInvalidUnsigned.Lei Zhang
Use in place of -1 where applicable.
2016-09-01Add more bounds checks in WritableFontData.Lei Zhang
WritableFontData::Slice() needs to do more input validation. Same for ReadableFontData::Slice(). Same for the equivalent Java code. Fixes https://crbug.com/642300
2016-09-01Return error values in ReadableFontData::Read*().Lei Zhang
Change Read*Byte methods in ReadableFontData to return sentinel values on error. Check the return values in other methods, and repeat the process if they are also Read() methods. Fixes https://crbug.com/641460
2016-09-01Add a size limit for font tables.Lei Zhang
Add a generous 200 MB limit for font tables. Enforce the limit in Font::Builder::LoadTableData(). Clean up some nits along the way. Fixes https://crbug.com/641446
2016-09-01Add a nullptr check to GlyphTable::Glyph().Lei Zhang
Do not attempt to create a new Glyph if there is no data. Fixes https://crbug.com/641330
2016-07-26SfntlyWrapper::SubsetFont takes TTC indexHal Canary
2016-06-09Add a bounds check to ByteArray::Get().Lei Zhang
2015-09-23Check for integer overflow in sfntly::FontData::Bound().Lei Zhang
Also delete dead code and cleanup some nits. This is cl/96914065.
2015-01-07Do not compare this with NULL.Chih-Hung Hsieh
Cherry picked this fix from upstream to compile clean with clang. BUG: 17356808 Change-Id: I1f25aec1b96036f63ca3df65a51fa9a740121a50
2014-06-09Fix compiler warningarthurhsu
Clang warning: 'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to false [-Wtautological-undefined-compare]
2013-11-05Issue 19330043: fix QNX buildarthurhsu
Patch by: efidler1@blackberry.com
2013-10-16ticket:38 Fix sfntly compilation on VS2013stuartg
2013-08-16Adding Sfntly library for printing supportandroid-sdk-4.4.2_r1.0.1android-sdk-4.4.2_r1android-cts-4.4_r4android-cts-4.4_r1android-4.4w_r1android-4.4_r1.2.0.1android-4.4_r1.2android-4.4_r1.1.0.1android-4.4_r1.1android-4.4_r1.0.1android-4.4_r1android-4.4_r0.9android-4.4_r0.8android-4.4_r0.7android-4.4.4_r2.0.1android-4.4.4_r2android-4.4.4_r1.0.1android-4.4.4_r1android-4.4.3_r1.1.0.1android-4.4.3_r1.1android-4.4.3_r1.0.1android-4.4.3_r1android-4.4.2_r2.0.1android-4.4.2_r2android-4.4.2_r1.0.1android-4.4.2_r1android-4.4.1_r1.0.1android-4.4.1_r1kitkat-wearkitkat-releasekitkat-mr2.2-releasekitkat-mr2.1-releasekitkat-mr2-releasekitkat-mr1.1-releasekitkat-mr1-releasekitkat-devkitkat-cts-releasekitkat-cts-devSelim Gurun
Bug: 10314402 Change-Id: I0f4b024d5c6ef47f7aedcecbb220e4f8a7fc8f16
2012-07-09Gracefully fail when TTF name table contains a zero-length name.arthurhsu
Backport from b/6733065.
2012-06-29Land Nico's warning fix.arthurhsu
2012-02-28Work around Apple MacOS X Lion AppleMyungjo font bug.arthurhsu
2012-01-05Coverity fix: uninitialized scalar member.arthurhsu
2011-12-12Move Chromium subsetter code to sample, update CMakeLists accordingly.arthurhsu
Remove unused const in font.h.
2011-12-09Update test files for macro changes in previous CLarthurhsu
2011-12-09Patch from Nico Weber: remove static initializers.arthurhsu
This is needed because gcc 4.4.3 can't evaluate simple static functions at compile time.
2011-12-09Update per code reviewarthurhsu
2011-12-09Update per Chromium side code reviewarthurhsu
2011-11-30Fix clang compilation errors in Chromium.arthurhsu
2011-11-29Graduate EBXX from experimentalarthurhsu
2011-11-29Fix subsetter bug (TBR, testing with Chrome integration, subjected to change)arthurhsu
2011-11-28Update per code review comments from previous check-inarthurhsu
2011-11-28Finish bitmap subsetting supportarthurhsu
2011-11-16Fix bug in HDMX table (from stuartg's code review)arthurhsu
2011-11-15Update to Java initial release (except bitmap tables)arthurhsu
TBR(stuartg)
2011-10-21Update to 10-17-11 snapshotarthurhsu
2011-10-20Fix issue 3: no new line at end of filearthurhsu
2011-10-18Update to 10-12-11 snapshotarthurhsu
Created new chrome_subsetter program to test font subsetter used in Chromium Fix several porting bugs in previous CL
2011-10-11Update to Sep 30 snapshot, include all current EBXX support.arthurhsu
Refine Iterator ports: all java-style Iterator objects are ref-counted and have automatic memory management now.
2011-09-26Temporary disable CMap and Bitmap processing by default.arthurhsu
2011-09-22Fixing another signed/unsigned comparison issue.dfilimon
2011-09-22Fixing signed/unsigned comparison mismatch.dfilimon
2011-09-22Fixing compilation issues on Windows.dfilimon
2011-09-22Adding missing XML files and licenses.dfilimon
2011-09-22Migrated CMapBasicTests to use XML source.dfilimon
- added TinyXML library code and helper functions - removed old Python scripts that generated C++ files - added Python script that generates a list of fonts to test (.h file) - modified test/autogenerated/cmap_basic_test.cc - update test/autogenerated/cmap_test_data.h