Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

allocate the correct number of stack entries for glyph_names()

Each of the drivers allocated count entries then attempted to use entry
"count".  Allocate count+1 entries instead
  • Loading branch information...
commit 086b32d62fb836a9b3651526a4a51b0070371269 1 parent d7faa98
Tony Cook authored March 01, 2013
2  FT2/FT2.xs
@@ -303,7 +303,7 @@ i_ft2_glyph_name(handle, text_sv, utf8 = 0, reliable_only = 1)
303 303
             ch = *text++;
304 304
             --len;
305 305
           }
306  
-          EXTEND(SP, count);
  306
+          EXTEND(SP, count+1);
307 307
           if (i_ft2_glyph_name(handle, ch, name, sizeof(name), 
308 308
                                          reliable_only)) {
309 309
             ST(count) = sv_2mortal(newSVpv(name, 0));
2  Imager.xs
@@ -2395,7 +2395,7 @@ i_tt_glyph_name(handle, text_sv, utf8 = 0)
2395 2395
             ch = *text++;
2396 2396
             --len;
2397 2397
           }
2398  
-          EXTEND(SP, count);
  2398
+          EXTEND(SP, count+1);
2399 2399
           if ((outsize = i_tt_glyph_name(handle, ch, name, sizeof(name))) != 0) {
2400 2400
 	    ST(count) = sv_2mortal(newSVpv(name, 0));
2401 2401
           }
2  T1/T1.xs
@@ -195,7 +195,7 @@ i_t1_glyph_names(font, text_sv, utf8 = 0)
195 195
             ch = *text++;
196 196
             --len;
197 197
           }
198  
-          EXTEND(SP, count);
  198
+          EXTEND(SP, count+1);
199 199
           if (i_t1_glyph_name(font, ch, name, sizeof(name))) {
200 200
             ST(count) = sv_2mortal(newSVpv(name, 0));
201 201
           }

0 notes on commit 086b32d

Please sign in to comment.
Something went wrong with that request. Please try again.