Re: [PATCH] t42objs.c (T42_Size_Init): fix possible uninitialized use of ttsize
Alexei Podtelezhnikov <[email protected]> Wed, 4 Jun 2025 07:20:46 -0400
| Newsgroups | gmane.comp.fonts.freetype.devel |
|---|---|
| Message-ID | <[email protected]> |
FT_Activate_Size had better go under the condition. > On Jun 4, 2025, at 04:48, Ozkan Sezer <[email protected]> wrote: > > --- > src/type42/t42objs.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/type42/t42objs.c b/src/type42/t42objs.c > index 7010ba8..a8336b0 100644 > --- a/src/type42/t42objs.c > +++ b/src/type42/t42objs.c > @@ -504,7 +504,7 @@ > T42_Size t42size = (T42_Size)size; > FT_Face face = size->face; > T42_Face t42face = (T42_Face)face; > - FT_Size ttsize; > + FT_Size ttsize = NULL; > FT_Error error; > > > -- > O.S. > <0001-t42objs.c-T42_Size_Init-fix-possible-uninitialized-u.patch>