[PATCH] t42objs.c (T42_Size_Init): fix possible uninitialized use of ttsize
Ozkan Sezer <[email protected]> Wed, 4 Jun 2025 11:47:23 +0300
| Newsgroups | gmane.comp.fonts.freetype.devel |
|---|---|
| Message-ID | <CAA2C=vCx7x0kW0138NWJfZmcW60CcXQoqGFqvLhsOfr15BjqcA@mail.gmail.com> |
---
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
(application/octet-stream, 690 B)
From 0e7ae3fb7c4e49aa3188cbcb87bae810c7184dab Mon Sep 17 00:00:00 2001 From: Ozkan Sezer <[email protected]> Date: Wed, 4 Jun 2025 11:40:40 +0300 Subject: [PATCH] t42objs.c (T42_Size_Init): fix possible uninitialized use of ttsize --- 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; -- 1.7.1