freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master e181911d8: * src/base/ftstream.c (FT_Stream_ReadField


From: Werner Lemberg
Subject: [freetype2] master e181911d8: * src/base/ftstream.c (FT_Stream_ReadFields): Switch to `FT_Offset`.
Date: Mon, 5 Aug 2024 09:02:15 -0400 (EDT)

branch: master
commit e181911d878f8439a904fcf2ed27a1f5f730ac0a
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * src/base/ftstream.c (FT_Stream_ReadFields): Switch to `FT_Offset`.
---
 src/base/ftstream.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/base/ftstream.c b/src/base/ftstream.c
index eca0980bd..667222461 100644
--- a/src/base/ftstream.c
+++ b/src/base/ftstream.c
@@ -763,10 +763,10 @@
       case ft_frame_bytes:  /* read a byte sequence */
       case ft_frame_skip:   /* skip some bytes      */
         {
-          FT_Int  len = fields->size;
+          FT_Offset  len = fields->size;
 
 
-          if ( len > stream->limit - cursor )
+          if ( len > (FT_Offset)( stream->limit - cursor ) )
           {
             error = FT_THROW( Invalid_Stream_Operation );
             goto Exit;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]