Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #94 from pshipton/freetype0.37
Browse files Browse the repository at this point in the history
(0.37) Fix CVE-2023-2004 in freetype 2.12.1
  • Loading branch information
keithc-ca authored Apr 19, 2023
2 parents a95c00a + 017e825 commit ce73ec7
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 ce73ec7

Please sign in to comment.