Re: [PATCH] t42objs.c (T42_Size_Init): fix possible uninitialized use of ttsize

Ozkan Sezer <[email protected]> Wed, 4 Jun 2025 21:18:05 +0300
Newsgroups gmane.comp.fonts.freetype.devel
Message-ID <CAA2C=vB5VYbGVphVijx9=+UQ2kz5R9xcp6Et454cabVkVgELog@mail.gmail.com>
On Wed, Jun 4, 2025 at 2:53=E2=80=AFPM Alexei Podtelezhnikov <apodtele@gmai=
l.com> wrote:
>
> Please check again if you see the warning.

That's good. Thanks.

>
> > On Jun 4, 2025, at 07:20, Alexei Podtelezhnikov <[email protected]> wr=
ote:
> >
> > =EF=BB=BFFT_Activate_Size had better go under the condition.
> >
> >> On Jun 4, 2025, at 04:48, Ozkan Sezer <[email protected]> wrote:
> >>
> >> =EF=BB=BF---
> >> 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 =3D (T42_Size)size;
> >>    FT_Face   face    =3D size->face;
> >>    T42_Face  t42face =3D (T42_Face)face;
> >> -    FT_Size   ttsize;
> >> +    FT_Size   ttsize  =3D NULL;
> >>    FT_Error  error;
> >>
> >>
> >> --
> >> O.S.
> >> <0001-t42objs.c-T42_Size_Init-fix-possible-uninitialized-u.patch>