Skip to content

Commit

Permalink
Merge pull request #661 from pshipton/freetype
Browse files Browse the repository at this point in the history
Fix CVE-2023-2004 in freetype 2.12.1
  • Loading branch information
keithc-ca authored Apr 17, 2023
2 parents b075c48 + 26ba128 commit fcac2f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <ft2build.h>
#include <freetype/internal/ftdebug.h>
#include FT_CONFIG_CONFIG_H
#include <freetype/internal/ftcalc.h>
#include <freetype/internal/ftstream.h>
#include <freetype/internal/sfnt.h>
#include <freetype/tttags.h>
Expand Down Expand Up @@ -1140,7 +1141,7 @@
delta == 1 ? "" : "s",
vertical ? "VVAR" : "HVAR" ));

*avalue += delta;
*avalue = ADD_INT( *avalue, delta );

Exit:
return error;
Expand Down

0 comments on commit fcac2f2

Please sign in to comment.