Compare commits

..

No commits in common. "6cb661f0f45ae2d1d3824bcf7bca7a5f68ba946a" and "138f3955d19b959bfd4016f654740a5c9d92300d" have entirely different histories.

2 changed files with 31 additions and 31 deletions

View File

@ -2,22 +2,22 @@ Changes in PDFio
================
v1.3.2 - YYYY-MM-DD
-------------------
v1.3.2 (Month DD, YYYY)
-----------------------
- Added some more sanity checks to the TrueType font reader.
v1.3.1 - 2024-08-05
-------------------
v1.3.1 (August 5, 2024)
-----------------------
- CVE 2024-42358: Updated TrueType font reader to avoid large memory
allocations.
- Fixed some documentation errors and added examples (Issue #68, Issue #69)
v1.3.0 - 2024-06-28
-------------------
v1.3.0 (June 28, 2024)
----------------------
- Added `pdfioFileGetCatalog` API for accessing the root/catalog object of a
PDF file (Issue #67)
@ -27,8 +27,8 @@ v1.3.0 - 2024-06-28
- Optimized string pool code.
v1.2.0 - 2024-01-24
-------------------
v1.2.0 (January 24, 2024)
-------------------------
- Now use autoconf to configure the PDFio sources (Issue #54)
- Added `pdfioFileCreateNumberObj` and `pdfioFileCreateStringObj` functions
@ -51,8 +51,8 @@ v1.2.0 - 2024-01-24
65536 in the xref table (Issue #59)
v1.1.4 - 2023-12-03
-------------------
v1.1.4 (December 3, 2023)
-------------------------
- Fixed detection of encrypted strings that are too short (Issue #52)
- Fixed a TrueType CMAP decoding bug.
@ -60,15 +60,15 @@ v1.1.4 - 2023-12-03
- Added a ToUnicode map for Unicode text to support text copying.
v1.1.3 - 2023-11-15
-------------------
v1.1.3 (November 15, 2023)
--------------------------
- Fixed Unicode font support (Issue #16)
- Fixed missing initializer for 40-bit RC4 encryption (Issue #51)
v1.1.2 - 2023-10-10
-------------------
v1.1.2 (October 10, 2023)
-------------------------
- Updated `pdfioContentSetDashPattern` to support setting a solid (0 length)
dash pattern (Issue #41)
@ -83,15 +83,15 @@ v1.1.2 - 2023-10-10
(Issue #48)
v1.1.1 - 2023-03-20
-------------------
v1.1.1 (March 20, 2023)
-----------------------
- CVE-2023-28428: Fixed a potential denial-of-service with corrupt PDF files.
- Fixed a few build issues.
v1.1.0 - 2023-02-06
-------------------
v1.1.0 (February 6, 2023)
-------------------------
- CVE-2023-24808: Fixed a potential denial-of-service with corrupt PDF files.
- Added `pdfioFileCreateTemporary` function (Issue #29)
@ -105,28 +105,28 @@ v1.1.0 - 2023-02-06
- Fixed `pdfioContentMatrixRotate` function.
v1.0.1 - 2022-03-02
-------------------
v1.0.1 (March 2, 2022)
----------------------
- Added missing `pdfioPageGetNumStreams` and `pdfioPageOpenStream` functions.
- Added demo pdfiototext utility.
- Fixed bug in `pdfioStreamGetToken`.
v1.0.0 - 2021-12-14
-------------------
v1.0.0 (December 14, 2021)
--------------------------
- First stable release.
v1.0rc1 - 2021-11-30
--------------------
v1.0rc1 (November 30, 2021)
---------------------------
- Fixed a few stack/buffer overflow bugs discovered via fuzzing.
v1.0b2 - 2021-11-07
-------------------
v1.0b2 (November 7, 2021)
-------------------------
- Added `pdfioFileCreateOutput` API to support streaming output of PDF
(Issue #21)
@ -137,7 +137,7 @@ v1.0b2 - 2021-11-07
- Fixed some issues identified by a Coverity scan.
v1.0b1 - 2021-08-30
-------------------
v1.0b1 (August 30, 2021)
------------------------
- Initial release

6
ttf.c
View File

@ -1323,7 +1323,7 @@ read_cmap(ttf_t *font) // I - Font
TTF_DEBUG("read_cmap: glyphIdArray[%d]=%d\n", i, glyphIdArray[i]);
#endif /* DEBUG */
if (font->num_cmap == 0 || font->num_cmap > TTF_FONT_MAX_CHAR)
if (font->num_cmap > TTF_FONT_MAX_CHAR)
{
errorf(font, "Invalid cmap table with %u characters.", (unsigned)font->num_cmap);
return (false);
@ -1433,7 +1433,7 @@ read_cmap(ttf_t *font) // I - Font
// uncompressed cmap table...
TTF_DEBUG("read_cmap: num_cmap=%u\n", (unsigned)font->num_cmap);
if (font->num_cmap == 0 || font->num_cmap > TTF_FONT_MAX_CHAR)
if (font->num_cmap > TTF_FONT_MAX_CHAR)
{
errorf(font, "Invalid cmap table with %u characters.", (unsigned)font->num_cmap);
return (false);
@ -1522,7 +1522,7 @@ read_cmap(ttf_t *font) // I - Font
// uncompressed cmap table...
TTF_DEBUG("read_cmap: num_cmap=%u\n", (unsigned)font->num_cmap);
if (font->num_cmap == 0 || font->num_cmap > TTF_FONT_MAX_CHAR)
if (font->num_cmap > TTF_FONT_MAX_CHAR)
{
errorf(font, "Invalid cmap table with %u characters.", (unsigned)font->num_cmap);
return (false);