freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] apinames: Fix out-of-scope reference of


From: suzuki toshiya (@mpsuzuki)
Subject: [Git][freetype/freetype][master] apinames: Fix out-of-scope reference of a static array.
Date: Sun, 13 Oct 2024 08:52:14 +0000

suzuki toshiya pushed to branch master at FreeType / FreeType

Commits:

  • 26b545f3
    by Suzuki, Toshiya (鈴木俊哉) at 2024-10-13T11:39:14+09:00
    apinames: Fix out-of-scope reference of a static array.
    
    * apinames.c (names_dump): For WATCOM_LBC format, the
      DLL name with no suffix is constructed on a static
      array temp[], but the scope is closed before use it.
      The declaration of temp[] is moved to the wider
      scope for the dumping part to refer it.
    

1 changed file:

Changes:

  • src/tools/apinames.c
    ... ... @@ -181,6 +181,7 @@ names_dump( FILE* out,
    181 181
     
    
    182 182
       case OUTPUT_WATCOM_LBC:
    
    183 183
         {
    
    184
    +      char         temp[512];
    
    184 185
           const char*  dot;
    
    185 186
     
    
    186 187
     
    
    ... ... @@ -195,7 +196,6 @@ names_dump( FILE* out,
    195 196
           dot = strchr( dll_name, '.' );
    
    196 197
           if ( dot )
    
    197 198
           {
    
    198
    -        char  temp[512];
    
    199 199
             int   len = dot - dll_name;
    
    200 200
     
    
    201 201
     
    


  • reply via email to

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