Skip to content
Permalink
Browse files Browse the repository at this point in the history
* src/truetype/ttgxvar.c (tt_hvadvance_adjust): Integer overflow.
  • Loading branch information
lemzwerg committed Nov 14, 2022
1 parent 63ccaef commit e6fda03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/truetype/ttgxvar.c
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 @@ -1207,7 +1208,7 @@
delta == 1 ? "" : "s",
vertical ? "VVAR" : "HVAR" ));

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

Exit:
Expand Down

0 comments on commit e6fda03

Please sign in to comment.