idx int64 | func_before string | Vulnerability Classification string | vul int64 | func_after string | patch string | CWE ID string | lines_before string | lines_after string |
|---|---|---|---|---|---|---|---|---|
8,000 | Render_Text( int first_glyph )
{
FT_F26Dot6 start_x, start_y, step_x, step_y, x, y;
int i;
const unsigned char* p;
start_x = 4;
start_y = 32 + size->metrics.y_ppem;
step_x = size->metrics.x_ppem + 4;
step_y = size->metrics.y_ppem + 10;
x = start_x;
y = start_y;
... | DoS Exec Code Overflow | 0 | Render_Text( int first_glyph )
{
FT_F26Dot6 start_x, start_y, step_x, step_y, x, y;
int i;
const unsigned char* p;
start_x = 4;
start_y = 32 + size->metrics.y_ppem;
step_x = size->metrics.x_ppem + 4;
step_y = size->metrics.y_ppem + 10;
x = start_x;
y = start_y;
... | @@ -2,7 +2,7 @@
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
-/* Copyright 1996-2000, 2003, 2004, 2005 by ... | CWE-119 | null | null |
8,001 | Reset_Scale( int pointSize )
{
(void)FT_Set_Char_Size( face, pointSize << 6, pointSize << 6, res, res );
}
| DoS Exec Code Overflow | 0 | Reset_Scale( int pointSize )
{
(void)FT_Set_Char_Size( face, pointSize << 6, pointSize << 6, res, res );
}
| @@ -2,7 +2,7 @@
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
-/* Copyright 1996-2000, 2003, 2004, 2005 by ... | CWE-119 | null | null |
8,002 | make_tag( char *s )
{
int i;
unsigned long l = 0;
for ( i = 0; i < 4; i++ )
{
if ( !s[i] )
break;
l <<= 8;
l += (unsigned long)s[i];
}
return l;
}
| DoS Exec Code Overflow | 0 | make_tag( char *s )
{
int i;
unsigned long l = 0;
for ( i = 0; i < 4; i++ )
{
if ( !s[i] )
break;
l <<= 8;
l += (unsigned long)s[i];
}
return l;
}
| @@ -2,7 +2,7 @@
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
-/* Copyright 1996-2000, 2003, 2004, 2005 by ... | CWE-119 | null | null |
8,003 | parse_design_coords( char *s )
{
for ( requested_cnt = 0; requested_cnt < T1_MAX_MM_AXIS && *s;
requested_cnt++ )
{
requested_pos[requested_cnt] = (FT_Fixed)( strtod( s, &s ) * 65536.0 );
while ( *s==' ' )
++s;
}
}
| DoS Exec Code Overflow | 0 | parse_design_coords( char *s )
{
for ( requested_cnt = 0; requested_cnt < T1_MAX_MM_AXIS && *s;
requested_cnt++ )
{
requested_pos[requested_cnt] = (FT_Fixed)( strtod( s, &s ) * 65536.0 );
while ( *s==' ' )
++s;
}
}
| @@ -2,7 +2,7 @@
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
-/* Copyright 1996-2000, 2003, 2004, 2005 by ... | CWE-119 | null | null |
8,004 | usage( char* execname )
{
fprintf( stderr, "\n" );
fprintf( stderr, "ftmulti: multiple masters font viewer - part of FreeType\n" );
fprintf( stderr, "--------------------------------------------------------\n" );
fprintf( stderr, "\n" );
fprintf( stderr, "Usage: %s [options below] ppem fon... | DoS Exec Code Overflow | 0 | usage( char* execname )
{
fprintf( stderr, "\n" );
fprintf( stderr, "ftmulti: multiple masters font viewer - part of FreeType\n" );
fprintf( stderr, "--------------------------------------------------------\n" );
fprintf( stderr, "\n" );
fprintf( stderr, "Usage: %s [options below] ppem fon... | @@ -2,7 +2,7 @@
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
-/* Copyright 1996-2000, 2003, 2004, 2005 by ... | CWE-119 | null | null |
8,005 | Process_Event( grEvent* event )
{
FTDemo_String_Context* sc = &status.sc;
int ret = 0;
if ( event->key >= '1' && event->key < '1' + N_RENDER_MODES )
{
status.render_mode = event->key - '1';
event_render_mode_change( 0 );
return ret;
}
switch ( even... | DoS Exec Code Overflow | 0 | Process_Event( grEvent* event )
{
FTDemo_String_Context* sc = &status.sc;
int ret = 0;
if ( event->key >= '1' && event->key < '1' + N_RENDER_MODES )
{
status.render_mode = event->key - '1';
event_render_mode_change( 0 );
return ret;
}
switch ( even... | @@ -2,7 +2,7 @@
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
-/* Copyright 1996-2002, 2003, 2004, 2005, 2006, 2007, 2009 by ... | CWE-119 | null | null |
8,006 | event_angle_change( int delta )
{
double radian;
FT_Fixed cosinus;
FT_Fixed sinus;
status.angle = ( status.angle + delta ) % 360;
if ( status.angle == 0 )
{
status.sc.matrix = NULL;
return;
}
status.sc.matrix = &status.trans_matrix;
if ( status.angle < 0 )... | DoS Exec Code Overflow | 0 | event_angle_change( int delta )
{
double radian;
FT_Fixed cosinus;
FT_Fixed sinus;
status.angle = ( status.angle + delta ) % 360;
if ( status.angle == 0 )
{
status.sc.matrix = NULL;
return;
}
status.sc.matrix = &status.trans_matrix;
if ( status.angle < 0 )... | @@ -2,7 +2,7 @@
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
-/* Copyright 1996-2002, 2003, 2004, 2005, 2006, 2007, 2009 by ... | CWE-119 | null | null |
8,007 | event_font_change( int delta )
{
if ( status.font_index + delta >= handle->num_fonts ||
status.font_index + delta < 0 )
return;
status.font_index += delta;
FTDemo_Set_Current_Font( handle, handle->fonts[status.font_index] );
FTDemo_Set_Current_Charsize( handle, status.ptsize, statu... | DoS Exec Code Overflow | 0 | event_font_change( int delta )
{
if ( status.font_index + delta >= handle->num_fonts ||
status.font_index + delta < 0 )
return;
status.font_index += delta;
FTDemo_Set_Current_Font( handle, handle->fonts[status.font_index] );
FTDemo_Set_Current_Charsize( handle, status.ptsize, statu... | @@ -2,7 +2,7 @@
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
-/* Copyright 1996-2002, 2003, 2004, 2005, 2006, 2007, 2009 by ... | CWE-119 | null | null |
8,008 | event_gamma_change( double delta )
{
int i;
double gamma_inv;
status.gamma += delta;
if ( status.gamma > 3.0 )
status.gamma = 3.0;
else if ( status.gamma < 0.1 )
status.gamma = 0.1;
sprintf( status.header_buffer, "gamma changed to %.1f", status.gamma );
status.header = sta... | DoS Exec Code Overflow | 0 | event_gamma_change( double delta )
{
int i;
double gamma_inv;
status.gamma += delta;
if ( status.gamma > 3.0 )
status.gamma = 3.0;
else if ( status.gamma < 0.1 )
status.gamma = 0.1;
sprintf( status.header_buffer, "gamma changed to %.1f", status.gamma );
status.header = sta... | @@ -2,7 +2,7 @@
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
-/* Copyright 1996-2002, 2003, 2004, 2005, 2006, 2007, 2009 by ... | CWE-119 | null | null |
8,009 | event_help( void )
{
grEvent dummy_event;
FTDemo_Display_Clear( display );
grGotoxy( 0, 0 );
grSetMargin( 2, 1 );
grGotobitmap( display->bitmap );
grWriteln( "FreeType String Viewer - part of the FreeType test suite" );
grLn();
grWriteln( "This program is used to display a string... | DoS Exec Code Overflow | 0 | event_help( void )
{
grEvent dummy_event;
FTDemo_Display_Clear( display );
grGotoxy( 0, 0 );
grSetMargin( 2, 1 );
grGotobitmap( display->bitmap );
grWriteln( "FreeType String Viewer - part of the FreeType test suite" );
grLn();
grWriteln( "This program is used to display a string... | @@ -2,7 +2,7 @@
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
-/* Copyright 1996-2002, 2003, 2004, 2005, 2006, 2007, 2009 by ... | CWE-119 | null | null |
8,010 | gamma_ramp_draw( FT_Byte gamma_ramp[256],
grBitmap* bitmap )
{
int i, x, y;
FT_Byte* p = (FT_Byte*)bitmap->buffer;
if ( bitmap->pitch < 0 )
p += -bitmap->pitch * ( bitmap->rows - 1 );
x = ( bitmap->width - 256 ) / 2;
y = ( bitmap->rows + 256 ) / 2;
for ... | DoS Exec Code Overflow | 0 | gamma_ramp_draw( FT_Byte gamma_ramp[256],
grBitmap* bitmap )
{
int i, x, y;
FT_Byte* p = (FT_Byte*)bitmap->buffer;
if ( bitmap->pitch < 0 )
p += -bitmap->pitch * ( bitmap->rows - 1 );
x = ( bitmap->width - 256 ) / 2;
y = ( bitmap->rows + 256 ) / 2;
for ... | @@ -2,7 +2,7 @@
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
-/* Copyright 1996-2002, 2003, 2004, 2005, 2006, 2007, 2009 by ... | CWE-119 | null | null |
8,011 | main( int argc,
char** argv )
{
grEvent event;
parse_cmdline( &argc, &argv );
/* Initialize engine */
handle = FTDemo_New( status.encoding );
handle->use_sbits = 0;
FTDemo_Update_Current_Flags( handle );
for ( ; argc > 0; argc--, argv++ )
{
error = FTDemo_Ins... | DoS Exec Code Overflow | 0 | main( int argc,
char** argv )
{
grEvent event;
parse_cmdline( &argc, &argv );
/* Initialize engine */
handle = FTDemo_New( status.encoding );
handle->use_sbits = 0;
FTDemo_Update_Current_Flags( handle );
for ( ; argc > 0; argc--, argv++ )
{
error = FTDemo_Ins... | @@ -2,7 +2,7 @@
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
-/* Copyright 1996-2002, 2003, 2004, 2005, 2006, 2007, 2009 by ... | CWE-119 | null | null |
8,012 | parse_cmdline( int* argc,
char*** argv )
{
char* execname;
int option;
execname = ft_basename( (*argv)[0] );
while ( 1 )
{
option = getopt( *argc, *argv, "e:m:r:" );
if ( option == -1 )
break;
switch ( option )
{
case 'e':
... | DoS Exec Code Overflow | 0 | parse_cmdline( int* argc,
char*** argv )
{
char* execname;
int option;
execname = ft_basename( (*argv)[0] );
while ( 1 )
{
option = getopt( *argc, *argv, "e:m:r:" );
if ( option == -1 )
break;
switch ( option )
{
case 'e':
... | @@ -2,7 +2,7 @@
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
-/* Copyright 1996-2002, 2003, 2004, 2005, 2006, 2007, 2009 by ... | CWE-119 | null | null |
8,013 | usage( char* execname )
{
fprintf( stderr, "\n" );
fprintf( stderr, "ftstring: string viewer -- part of the FreeType project\n" );
fprintf( stderr, "-------------------------------------------------------\n" );
fprintf( stderr, "\n" );
fprintf( stderr, "Usage: %s [options below] ppem fontn... | DoS Exec Code Overflow | 0 | usage( char* execname )
{
fprintf( stderr, "\n" );
fprintf( stderr, "ftstring: string viewer -- part of the FreeType project\n" );
fprintf( stderr, "-------------------------------------------------------\n" );
fprintf( stderr, "\n" );
fprintf( stderr, "Usage: %s [options below] ppem fontn... | @@ -2,7 +2,7 @@
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
-/* Copyright 1996-2002, 2003, 2004, 2005, 2006, 2007, 2009 by ... | CWE-119 | null | null |
8,014 | Fatal( const char* message )
{
FTDemo_Display_Done( display );
FTDemo_Done( handle );
PanicZ( message );
}
| DoS Exec Code Overflow | 0 | Fatal( const char* message )
{
FTDemo_Display_Done( display );
FTDemo_Done( handle );
PanicZ( message );
}
| @@ -1145,19 +1145,19 @@
switch ( error_code )
{
case FT_Err_Ok:
- sprintf( status.header_buffer, "%s %s (file `%s')",
+ sprintf( status.header_buffer, "%.50s %.50s (file `%.100s')",
face->family_name, face->style_name, basename );
break;
case FT_Err_I... | CWE-119 | null | null |
8,015 | Render_All( int num_indices,
int first_index )
{
int start_x, start_y, step_x, step_y, x, y;
int i;
FT_Size size;
error = FTDemo_Get_Size( handle, &size );
if ( error )
{
/* probably a non-existent bitmap font size */
return error;
}
INIT_SI... | DoS Exec Code Overflow | 0 | Render_All( int num_indices,
int first_index )
{
int start_x, start_y, step_x, step_y, x, y;
int i;
FT_Size size;
error = FTDemo_Get_Size( handle, &size );
if ( error )
{
/* probably a non-existent bitmap font size */
return error;
}
INIT_SI... | @@ -1145,19 +1145,19 @@
switch ( error_code )
{
case FT_Err_Ok:
- sprintf( status.header_buffer, "%s %s (file `%s')",
+ sprintf( status.header_buffer, "%.50s %.50s (file `%.100s')",
face->family_name, face->style_name, basename );
break;
case FT_Err_I... | CWE-119 | null | null |
8,016 | Render_Embolden( int num_indices,
int first_index )
{
int start_x, start_y, step_x, step_y, x, y;
int i;
FT_Size size;
error = FTDemo_Get_Size( handle, &size );
if ( error )
{
/* probably a non-existent bitmap font size */
return error;
}
... | DoS Exec Code Overflow | 0 | Render_Embolden( int num_indices,
int first_index )
{
int start_x, start_y, step_x, step_y, x, y;
int i;
FT_Size size;
error = FTDemo_Get_Size( handle, &size );
if ( error )
{
/* probably a non-existent bitmap font size */
return error;
}
... | @@ -1145,19 +1145,19 @@
switch ( error_code )
{
case FT_Err_Ok:
- sprintf( status.header_buffer, "%s %s (file `%s')",
+ sprintf( status.header_buffer, "%.50s %.50s (file `%.100s')",
face->family_name, face->style_name, basename );
break;
case FT_Err_I... | CWE-119 | null | null |
8,017 | Render_Slanted( int num_indices,
int first_index )
{
int start_x, start_y, step_x, step_y, x, y;
int i;
FT_Size size;
error = FTDemo_Get_Size( handle, &size );
if ( error )
{
/* probably a non-existent bitmap font size */
return error;
}
... | DoS Exec Code Overflow | 0 | Render_Slanted( int num_indices,
int first_index )
{
int start_x, start_y, step_x, step_y, x, y;
int i;
FT_Size size;
error = FTDemo_Get_Size( handle, &size );
if ( error )
{
/* probably a non-existent bitmap font size */
return error;
}
... | @@ -1145,19 +1145,19 @@
switch ( error_code )
{
case FT_Err_Ok:
- sprintf( status.header_buffer, "%s %s (file `%s')",
+ sprintf( status.header_buffer, "%.50s %.50s (file `%.100s')",
face->family_name, face->style_name, basename );
break;
case FT_Err_I... | CWE-119 | null | null |
8,018 | Render_Stroke( int num_indices,
int first_index )
{
int start_x, start_y, step_x, step_y, x, y;
int i;
FT_Size size;
FT_Stroker stroker = NULL;
error = FTDemo_Get_Size( handle, &size );
if ( error )
{
/* probably a non-existent bitmap font... | DoS Exec Code Overflow | 0 | Render_Stroke( int num_indices,
int first_index )
{
int start_x, start_y, step_x, step_y, x, y;
int i;
FT_Size size;
FT_Stroker stroker = NULL;
error = FTDemo_Get_Size( handle, &size );
if ( error )
{
/* probably a non-existent bitmap font... | @@ -1145,19 +1145,19 @@
switch ( error_code )
{
case FT_Err_Ok:
- sprintf( status.header_buffer, "%s %s (file `%s')",
+ sprintf( status.header_buffer, "%.50s %.50s (file `%.100s')",
face->family_name, face->style_name, basename );
break;
case FT_Err_I... | CWE-119 | null | null |
8,019 | Render_Waterfall( int first_size )
{
int start_x, start_y, step_x, step_y, x, y;
int pt_size, max_size = 100000;
FT_Size size;
FT_Face face;
unsigned char text[256];
const unsigned char* p;
error = FTC_Manager_LookupFace( handle->cache_manager,
... | DoS Exec Code Overflow | 0 | Render_Waterfall( int first_size )
{
int start_x, start_y, step_x, step_y, x, y;
int pt_size, max_size = 100000;
FT_Size size;
FT_Face face;
unsigned char text[256];
const unsigned char* p;
error = FTC_Manager_LookupFace( handle->cache_manager,
... | @@ -1145,19 +1145,19 @@
switch ( error_code )
{
case FT_Err_Ok:
- sprintf( status.header_buffer, "%s %s (file `%s')",
+ sprintf( status.header_buffer, "%.50s %.50s (file `%.100s')",
face->family_name, face->style_name, basename );
break;
case FT_Err_I... | CWE-119 | null | null |
8,020 | event_bold_change( double delta )
{
status.bold_factor += delta;
if ( status.bold_factor > 0.1 )
status.bold_factor = 0.1;
else if ( status.bold_factor < -0.1 )
status.bold_factor = -0.1;
sprintf( status.header_buffer, "embolding factor changed to %.3f",
status.bold_facto... | DoS Exec Code Overflow | 0 | event_bold_change( double delta )
{
status.bold_factor += delta;
if ( status.bold_factor > 0.1 )
status.bold_factor = 0.1;
else if ( status.bold_factor < -0.1 )
status.bold_factor = -0.1;
sprintf( status.header_buffer, "embolding factor changed to %.3f",
status.bold_facto... | @@ -1145,19 +1145,19 @@
switch ( error_code )
{
case FT_Err_Ok:
- sprintf( status.header_buffer, "%s %s (file `%s')",
+ sprintf( status.header_buffer, "%.50s %.50s (file `%.100s')",
face->family_name, face->style_name, basename );
break;
case FT_Err_I... | CWE-119 | null | null |
8,021 | event_gamma_change( double delta )
{
status.gamma += delta;
if ( status.gamma > 3.0 )
status.gamma = 3.0;
else if ( status.gamma < 0.0 )
status.gamma = 0.0;
grSetGlyphGamma( status.gamma );
sprintf( status.header_buffer, "gamma changed to %.1f%s",
status.gamma, statu... | DoS Exec Code Overflow | 0 | event_gamma_change( double delta )
{
status.gamma += delta;
if ( status.gamma > 3.0 )
status.gamma = 3.0;
else if ( status.gamma < 0.0 )
status.gamma = 0.0;
grSetGlyphGamma( status.gamma );
sprintf( status.header_buffer, "gamma changed to %.1f%s",
status.gamma, statu... | @@ -1145,19 +1145,19 @@
switch ( error_code )
{
case FT_Err_Ok:
- sprintf( status.header_buffer, "%s %s (file `%s')",
+ sprintf( status.header_buffer, "%.50s %.50s (file `%.100s')",
face->family_name, face->style_name, basename );
break;
case FT_Err_I... | CWE-119 | null | null |
8,022 | event_gamma_grid( void )
{
grEvent dummy_event;
int g;
int yside = 11;
int xside = 10;
int levels = 17;
int gammas = 30;
int x_0 = ( display->bitmap->width - levels * xside ) / 2;
int y_0 = ( display->bitmap->rows - gammas * ( yside + 1 ) )... | DoS Exec Code Overflow | 0 | event_gamma_grid( void )
{
grEvent dummy_event;
int g;
int yside = 11;
int xside = 10;
int levels = 17;
int gammas = 30;
int x_0 = ( display->bitmap->width - levels * xside ) / 2;
int y_0 = ( display->bitmap->rows - gammas * ( yside + 1 ) )... | @@ -1145,19 +1145,19 @@
switch ( error_code )
{
case FT_Err_Ok:
- sprintf( status.header_buffer, "%s %s (file `%s')",
+ sprintf( status.header_buffer, "%.50s %.50s (file `%.100s')",
face->family_name, face->style_name, basename );
break;
case FT_Err_I... | CWE-119 | null | null |
8,023 | event_help( void )
{
grEvent dummy_event;
FTDemo_Display_Clear( display );
grGotoxy( 0, 0 );
grSetMargin( 2, 1 );
grGotobitmap( display->bitmap );
grWriteln( "FreeType Glyph Viewer - part of the FreeType test suite" );
grLn();
grWriteln( "This program is used to display all glyph... | DoS Exec Code Overflow | 0 | event_help( void )
{
grEvent dummy_event;
FTDemo_Display_Clear( display );
grGotoxy( 0, 0 );
grSetMargin( 2, 1 );
grGotobitmap( display->bitmap );
grWriteln( "FreeType Glyph Viewer - part of the FreeType test suite" );
grLn();
grWriteln( "This program is used to display all glyph... | @@ -1145,19 +1145,19 @@
switch ( error_code )
{
case FT_Err_Ok:
- sprintf( status.header_buffer, "%s %s (file `%s')",
+ sprintf( status.header_buffer, "%.50s %.50s (file `%.100s')",
face->family_name, face->style_name, basename );
break;
case FT_Err_I... | CWE-119 | null | null |
8,024 | event_index_change( int delta )
{
int num_indices = handle->current_font->num_indices;
status.Num += delta;
if ( status.Num < 0 )
status.Num = 0;
else if ( status.Num >= num_indices )
status.Num = num_indices - 1;
}
| DoS Exec Code Overflow | 0 | event_index_change( int delta )
{
int num_indices = handle->current_font->num_indices;
status.Num += delta;
if ( status.Num < 0 )
status.Num = 0;
else if ( status.Num >= num_indices )
status.Num = num_indices - 1;
}
| @@ -1145,19 +1145,19 @@
switch ( error_code )
{
case FT_Err_Ok:
- sprintf( status.header_buffer, "%s %s (file `%s')",
+ sprintf( status.header_buffer, "%.50s %.50s (file `%.100s')",
face->family_name, face->style_name, basename );
break;
case FT_Err_I... | CWE-119 | null | null |
8,025 | event_render_mode_change( int delta )
{
if ( delta )
{
status.render_mode = ( status.render_mode + delta ) % N_RENDER_MODES;
if ( status.render_mode < 0 )
status.render_mode += N_RENDER_MODES;
}
switch ( status.render_mode )
{
case RENDER_MODE_ALL:
status.header... | DoS Exec Code Overflow | 0 | event_render_mode_change( int delta )
{
if ( delta )
{
status.render_mode = ( status.render_mode + delta ) % N_RENDER_MODES;
if ( status.render_mode < 0 )
status.render_mode += N_RENDER_MODES;
}
switch ( status.render_mode )
{
case RENDER_MODE_ALL:
status.header... | @@ -1145,19 +1145,19 @@
switch ( error_code )
{
case FT_Err_Ok:
- sprintf( status.header_buffer, "%s %s (file `%s')",
+ sprintf( status.header_buffer, "%.50s %.50s (file `%.100s')",
face->family_name, face->style_name, basename );
break;
case FT_Err_I... | CWE-119 | null | null |
8,026 | event_slant_change( double delta )
{
status.slant += delta;
if ( status.slant > 1.0 )
status.slant = 1.0;
else if ( status.slant < -1.0 )
status.slant = -1.0;
sprintf( status.header_buffer, "slanting changed to %.3f",
status.slant );
status.header = status.header_buf... | DoS Exec Code Overflow | 0 | event_slant_change( double delta )
{
status.slant += delta;
if ( status.slant > 1.0 )
status.slant = 1.0;
else if ( status.slant < -1.0 )
status.slant = -1.0;
sprintf( status.header_buffer, "slanting changed to %.3f",
status.slant );
status.header = status.header_buf... | @@ -1145,19 +1145,19 @@
switch ( error_code )
{
case FT_Err_Ok:
- sprintf( status.header_buffer, "%s %s (file `%s')",
+ sprintf( status.header_buffer, "%.50s %.50s (file `%.100s')",
face->family_name, face->style_name, basename );
break;
case FT_Err_I... | CWE-119 | null | null |
8,027 | Compute_Funcs( EXEC_OP )
{
#ifdef TT_CONFIG_OPTION_UNPATENTED_HINTING
if ( CUR.face->unpatented_hinting )
{
/* If both vectors point rightwards along the x axis, set */
/* `both-x-axis' true, otherwise set it false. The x values only */
/* need be tested because the vector... | DoS Exec Code Overflow | 0 | Compute_Funcs( EXEC_OP )
{
#ifdef TT_CONFIG_OPTION_UNPATENTED_HINTING
if ( CUR.face->unpatented_hinting )
{
/* If both vectors point rightwards along the x axis, set */
/* `both-x-axis' true, otherwise set it false. The x values only */
/* need be tested because the vector... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,028 | Compute_Point_Displacement( EXEC_OP_ FT_F26Dot6* x,
FT_F26Dot6* y,
TT_GlyphZone zone,
FT_UShort* refp )
{
TT_GlyphZoneRec zp;
FT_UShort p;
FT_F26Dot6 d;
if ( C... | DoS Exec Code Overflow | 0 | Compute_Point_Displacement( EXEC_OP_ FT_F26Dot6* x,
FT_F26Dot6* y,
TT_GlyphZone zone,
FT_UShort* refp )
{
TT_GlyphZoneRec zp;
FT_UShort p;
FT_F26Dot6 d;
if ( C... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,029 | Direct_Move( EXEC_OP_ TT_GlyphZone zone,
FT_UShort point,
FT_F26Dot6 distance )
{
FT_F26Dot6 v;
#ifdef TT_CONFIG_OPTION_UNPATENTED_HINTING
FT_ASSERT( !CUR.face->unpatented_hinting );
#endif
v = CUR.GS.freeVector.x;
if ( v != 0 )
{
... | DoS Exec Code Overflow | 0 | Direct_Move( EXEC_OP_ TT_GlyphZone zone,
FT_UShort point,
FT_F26Dot6 distance )
{
FT_F26Dot6 v;
#ifdef TT_CONFIG_OPTION_UNPATENTED_HINTING
FT_ASSERT( !CUR.face->unpatented_hinting );
#endif
v = CUR.GS.freeVector.x;
if ( v != 0 )
{
... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,030 | Direct_Move_Orig( EXEC_OP_ TT_GlyphZone zone,
FT_UShort point,
FT_F26Dot6 distance )
{
FT_F26Dot6 v;
#ifdef TT_CONFIG_OPTION_UNPATENTED_HINTING
FT_ASSERT( !CUR.face->unpatented_hinting );
#endif
v = CUR.GS.freeVector.x;
if ( v !=... | DoS Exec Code Overflow | 0 | Direct_Move_Orig( EXEC_OP_ TT_GlyphZone zone,
FT_UShort point,
FT_F26Dot6 distance )
{
FT_F26Dot6 v;
#ifdef TT_CONFIG_OPTION_UNPATENTED_HINTING
FT_ASSERT( !CUR.face->unpatented_hinting );
#endif
v = CUR.GS.freeVector.x;
if ( v !=... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,031 | Direct_Move_Orig_X( EXEC_OP_ TT_GlyphZone zone,
FT_UShort point,
FT_F26Dot6 distance )
{
FT_UNUSED_EXEC;
zone->org[point].x += distance;
}
| DoS Exec Code Overflow | 0 | Direct_Move_Orig_X( EXEC_OP_ TT_GlyphZone zone,
FT_UShort point,
FT_F26Dot6 distance )
{
FT_UNUSED_EXEC;
zone->org[point].x += distance;
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,032 | Direct_Move_Orig_Y( EXEC_OP_ TT_GlyphZone zone,
FT_UShort point,
FT_F26Dot6 distance )
{
FT_UNUSED_EXEC;
zone->org[point].y += distance;
}
| DoS Exec Code Overflow | 0 | Direct_Move_Orig_Y( EXEC_OP_ TT_GlyphZone zone,
FT_UShort point,
FT_F26Dot6 distance )
{
FT_UNUSED_EXEC;
zone->org[point].y += distance;
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,033 | Direct_Move_Y( EXEC_OP_ TT_GlyphZone zone,
FT_UShort point,
FT_F26Dot6 distance )
{
FT_UNUSED_EXEC;
zone->cur[point].y += distance;
zone->tags[point] |= FT_CURVE_TAG_TOUCH_Y;
}
| DoS Exec Code Overflow | 0 | Direct_Move_Y( EXEC_OP_ TT_GlyphZone zone,
FT_UShort point,
FT_F26Dot6 distance )
{
FT_UNUSED_EXEC;
zone->cur[point].y += distance;
zone->tags[point] |= FT_CURVE_TAG_TOUCH_Y;
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,034 | Ins_AA( INS_ARG )
{
/* intentionally no longer supported */
}
| DoS Exec Code Overflow | 0 | Ins_AA( INS_ARG )
{
/* intentionally no longer supported */
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,035 | Ins_ABS( INS_ARG )
{
DO_ABS
}
| DoS Exec Code Overflow | 0 | Ins_ABS( INS_ARG )
{
DO_ABS
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,036 | Ins_ALIGNPTS( INS_ARG )
{
FT_UShort p1, p2;
FT_F26Dot6 distance;
p1 = (FT_UShort)args[0];
p2 = (FT_UShort)args[1];
if ( BOUNDS( args[0], CUR.zp1.n_points ) ||
BOUNDS( args[1], CUR.zp0.n_points ) )
{
if ( CUR.pedantic_hinting )
CUR.error = TT_Err_Invalid_Reference... | DoS Exec Code Overflow | 0 | Ins_ALIGNPTS( INS_ARG )
{
FT_UShort p1, p2;
FT_F26Dot6 distance;
p1 = (FT_UShort)args[0];
p2 = (FT_UShort)args[1];
if ( BOUNDS( args[0], CUR.zp1.n_points ) ||
BOUNDS( args[1], CUR.zp0.n_points ) )
{
if ( CUR.pedantic_hinting )
CUR.error = TT_Err_Invalid_Reference... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,037 | Ins_ALIGNRP( INS_ARG )
{
FT_UShort point;
FT_F26Dot6 distance;
FT_UNUSED_ARG;
if ( CUR.top < CUR.GS.loop ||
BOUNDS( CUR.GS.rp0, CUR.zp0.n_points ) )
{
if ( CUR.pedantic_hinting )
CUR.error = TT_Err_Invalid_Reference;
return;
}
while ( CUR.GS.loop > 0 )... | DoS Exec Code Overflow | 0 | Ins_ALIGNRP( INS_ARG )
{
FT_UShort point;
FT_F26Dot6 distance;
FT_UNUSED_ARG;
if ( CUR.top < CUR.GS.loop ||
BOUNDS( CUR.GS.rp0, CUR.zp0.n_points ) )
{
if ( CUR.pedantic_hinting )
CUR.error = TT_Err_Invalid_Reference;
return;
}
while ( CUR.GS.loop > 0 )... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,038 | Ins_AND( INS_ARG )
{
DO_AND
}
| DoS Exec Code Overflow | 0 | Ins_AND( INS_ARG )
{
DO_AND
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,039 | Ins_CEILING( INS_ARG )
{
DO_CEILING
}
| DoS Exec Code Overflow | 0 | Ins_CEILING( INS_ARG )
{
DO_CEILING
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,040 | Ins_CINDEX( INS_ARG )
{
DO_CINDEX
}
| DoS Exec Code Overflow | 0 | Ins_CINDEX( INS_ARG )
{
DO_CINDEX
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,041 | Ins_CLEAR( INS_ARG )
{
DO_CLEAR
}
| DoS Exec Code Overflow | 0 | Ins_CLEAR( INS_ARG )
{
DO_CLEAR
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,042 | Ins_DEBUG( INS_ARG )
{
DO_DEBUG
}
| DoS Exec Code Overflow | 0 | Ins_DEBUG( INS_ARG )
{
DO_DEBUG
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,043 | Ins_DELTAC( INS_ARG )
{
FT_ULong nump, k;
FT_ULong A, C;
FT_Long B;
#ifdef TT_CONFIG_OPTION_UNPATENTED_HINTING
/* Delta hinting is covered by US Patent 5159668. */
if ( CUR.face->unpatented_hinting )
{
FT_Long n = args[0] * 2;
if ( CUR.args < n )
{
CUR.erro... | DoS Exec Code Overflow | 0 | Ins_DELTAC( INS_ARG )
{
FT_ULong nump, k;
FT_ULong A, C;
FT_Long B;
#ifdef TT_CONFIG_OPTION_UNPATENTED_HINTING
/* Delta hinting is covered by US Patent 5159668. */
if ( CUR.face->unpatented_hinting )
{
FT_Long n = args[0] * 2;
if ( CUR.args < n )
{
CUR.erro... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,044 | Ins_DELTAP( INS_ARG )
{
FT_ULong k, nump;
FT_UShort A;
FT_ULong C;
FT_Long B;
#ifdef TT_CONFIG_OPTION_UNPATENTED_HINTING
/* Delta hinting is covered by US Patent 5159668. */
if ( CUR.face->unpatented_hinting )
{
FT_Long n = args[0] * 2;
if ( CUR.args < n )
... | DoS Exec Code Overflow | 0 | Ins_DELTAP( INS_ARG )
{
FT_ULong k, nump;
FT_UShort A;
FT_ULong C;
FT_Long B;
#ifdef TT_CONFIG_OPTION_UNPATENTED_HINTING
/* Delta hinting is covered by US Patent 5159668. */
if ( CUR.face->unpatented_hinting )
{
FT_Long n = args[0] * 2;
if ( CUR.args < n )
... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,045 | Ins_DEPTH( INS_ARG )
{
DO_DEPTH
}
| DoS Exec Code Overflow | 0 | Ins_DEPTH( INS_ARG )
{
DO_DEPTH
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,046 | Ins_DIV( INS_ARG )
{
DO_DIV
}
| DoS Exec Code Overflow | 0 | Ins_DIV( INS_ARG )
{
DO_DIV
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,047 | Ins_DUP( INS_ARG )
{
DO_DUP
}
| DoS Exec Code Overflow | 0 | Ins_DUP( INS_ARG )
{
DO_DUP
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,048 | Ins_EIF( INS_ARG )
{
/* nothing to do */
}
| DoS Exec Code Overflow | 0 | Ins_EIF( INS_ARG )
{
/* nothing to do */
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,049 | Ins_ELSE( INS_ARG )
{
FT_Int nIfs;
FT_UNUSED_ARG;
nIfs = 1;
do
{
if ( SKIP_Code() == FAILURE )
return;
switch ( CUR.opcode )
{
case 0x58: /* IF */
nIfs++;
break;
case 0x59: /* EIF */
nIfs--;
break;
}
} w... | DoS Exec Code Overflow | 0 | Ins_ELSE( INS_ARG )
{
FT_Int nIfs;
FT_UNUSED_ARG;
nIfs = 1;
do
{
if ( SKIP_Code() == FAILURE )
return;
switch ( CUR.opcode )
{
case 0x58: /* IF */
nIfs++;
break;
case 0x59: /* EIF */
nIfs--;
break;
}
} w... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,050 | Ins_ENDF( INS_ARG )
{
TT_CallRec* pRec;
FT_UNUSED_ARG;
if ( CUR.callTop <= 0 ) /* We encountered an ENDF without a call */
{
CUR.error = TT_Err_ENDF_In_Exec_Stream;
return;
}
CUR.callTop--;
pRec = &CUR.callStack[CUR.callTop];
pRec->Cur_Count--;
CUR.step_in... | DoS Exec Code Overflow | 0 | Ins_ENDF( INS_ARG )
{
TT_CallRec* pRec;
FT_UNUSED_ARG;
if ( CUR.callTop <= 0 ) /* We encountered an ENDF without a call */
{
CUR.error = TT_Err_ENDF_In_Exec_Stream;
return;
}
CUR.callTop--;
pRec = &CUR.callStack[CUR.callTop];
pRec->Cur_Count--;
CUR.step_in... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,051 | Ins_EQ( INS_ARG )
{
DO_EQ
}
| DoS Exec Code Overflow | 0 | Ins_EQ( INS_ARG )
{
DO_EQ
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,052 | Ins_EVEN( INS_ARG )
{
DO_EVEN
}
| DoS Exec Code Overflow | 0 | Ins_EVEN( INS_ARG )
{
DO_EVEN
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,053 | Ins_FLIPPT( INS_ARG )
{
FT_UShort point;
FT_UNUSED_ARG;
if ( CUR.top < CUR.GS.loop )
{
CUR.error = TT_Err_Too_Few_Arguments;
return;
}
while ( CUR.GS.loop > 0 )
{
CUR.args--;
point = (FT_UShort)CUR.stack[CUR.args];
if ( BOUNDS( point, CUR.pts.n_points... | DoS Exec Code Overflow | 0 | Ins_FLIPPT( INS_ARG )
{
FT_UShort point;
FT_UNUSED_ARG;
if ( CUR.top < CUR.GS.loop )
{
CUR.error = TT_Err_Too_Few_Arguments;
return;
}
while ( CUR.GS.loop > 0 )
{
CUR.args--;
point = (FT_UShort)CUR.stack[CUR.args];
if ( BOUNDS( point, CUR.pts.n_points... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,054 | Ins_FLIPRGON( INS_ARG )
{
FT_UShort I, K, L;
K = (FT_UShort)args[1];
L = (FT_UShort)args[0];
if ( BOUNDS( K, CUR.pts.n_points ) ||
BOUNDS( L, CUR.pts.n_points ) )
{
if ( CUR.pedantic_hinting )
CUR.error = TT_Err_Invalid_Reference;
return;
}
for ( I = L; ... | DoS Exec Code Overflow | 0 | Ins_FLIPRGON( INS_ARG )
{
FT_UShort I, K, L;
K = (FT_UShort)args[1];
L = (FT_UShort)args[0];
if ( BOUNDS( K, CUR.pts.n_points ) ||
BOUNDS( L, CUR.pts.n_points ) )
{
if ( CUR.pedantic_hinting )
CUR.error = TT_Err_Invalid_Reference;
return;
}
for ( I = L; ... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,055 | Ins_FLOOR( INS_ARG )
{
DO_FLOOR
}
| DoS Exec Code Overflow | 0 | Ins_FLOOR( INS_ARG )
{
DO_FLOOR
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,056 | Ins_GPV( INS_ARG )
{
DO_GPV
}
| DoS Exec Code Overflow | 0 | Ins_GPV( INS_ARG )
{
DO_GPV
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,057 | Ins_GT( INS_ARG )
{
DO_GT
}
| DoS Exec Code Overflow | 0 | Ins_GT( INS_ARG )
{
DO_GT
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,058 | Ins_GTEQ( INS_ARG )
{
DO_GTEQ
}
| DoS Exec Code Overflow | 0 | Ins_GTEQ( INS_ARG )
{
DO_GTEQ
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,059 | Ins_Goto_CodeRange( EXEC_OP_ FT_Int aRange,
FT_ULong aIP )
{
TT_CodeRange* range;
if ( aRange < 1 || aRange > 3 )
{
CUR.error = TT_Err_Bad_Argument;
return FAILURE;
}
range = &CUR.codeRangeTable[aRange - 1];
if ( range->base == NULL ) /... | DoS Exec Code Overflow | 0 | Ins_Goto_CodeRange( EXEC_OP_ FT_Int aRange,
FT_ULong aIP )
{
TT_CodeRange* range;
if ( aRange < 1 || aRange > 3 )
{
CUR.error = TT_Err_Bad_Argument;
return FAILURE;
}
range = &CUR.codeRangeTable[aRange - 1];
if ( range->base == NULL ) /... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,060 | Ins_IDEF( INS_ARG )
{
TT_DefRecord* def;
TT_DefRecord* limit;
/* First of all, look for the same function in our table */
def = CUR.IDefs;
limit = def + CUR.numIDefs;
for ( ; def < limit; def++ )
if ( def->opc == (FT_ULong)args[0] )
break;
if ( def == limit )
... | DoS Exec Code Overflow | 0 | Ins_IDEF( INS_ARG )
{
TT_DefRecord* def;
TT_DefRecord* limit;
/* First of all, look for the same function in our table */
def = CUR.IDefs;
limit = def + CUR.numIDefs;
for ( ; def < limit; def++ )
if ( def->opc == (FT_ULong)args[0] )
break;
if ( def == limit )
... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,061 | Ins_IF( INS_ARG )
{
FT_Int nIfs;
FT_Bool Out;
if ( args[0] != 0 )
return;
nIfs = 1;
Out = 0;
do
{
if ( SKIP_Code() == FAILURE )
return;
switch ( CUR.opcode )
{
case 0x58: /* IF */
nIfs++;
break;
case 0x1B: /* ... | DoS Exec Code Overflow | 0 | Ins_IF( INS_ARG )
{
FT_Int nIfs;
FT_Bool Out;
if ( args[0] != 0 )
return;
nIfs = 1;
Out = 0;
do
{
if ( SKIP_Code() == FAILURE )
return;
switch ( CUR.opcode )
{
case 0x58: /* IF */
nIfs++;
break;
case 0x1B: /* ... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,062 | Ins_INSTCTRL( INS_ARG )
{
FT_Long K, L;
K = args[1];
L = args[0];
if ( K < 1 || K > 2 )
{
if ( CUR.pedantic_hinting )
CUR.error = TT_Err_Invalid_Reference;
return;
}
if ( L != 0 )
L = K;
CUR.GS.instruct_control = FT_BOOL(
( (FT_Byte)CUR.GS.inst... | DoS Exec Code Overflow | 0 | Ins_INSTCTRL( INS_ARG )
{
FT_Long K, L;
K = args[1];
L = args[0];
if ( K < 1 || K > 2 )
{
if ( CUR.pedantic_hinting )
CUR.error = TT_Err_Invalid_Reference;
return;
}
if ( L != 0 )
L = K;
CUR.GS.instruct_control = FT_BOOL(
( (FT_Byte)CUR.GS.inst... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,063 | Ins_IP( INS_ARG )
{
FT_F26Dot6 old_range, cur_range;
FT_Vector* orus_base;
FT_Vector* cur_base;
FT_Int twilight;
FT_UNUSED_ARG;
if ( CUR.top < CUR.GS.loop )
{
CUR.error = TT_Err_Invalid_Reference;
return;
}
/*
* We need to deal in a special way with t... | DoS Exec Code Overflow | 0 | Ins_IP( INS_ARG )
{
FT_F26Dot6 old_range, cur_range;
FT_Vector* orus_base;
FT_Vector* cur_base;
FT_Int twilight;
FT_UNUSED_ARG;
if ( CUR.top < CUR.GS.loop )
{
CUR.error = TT_Err_Invalid_Reference;
return;
}
/*
* We need to deal in a special way with t... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,064 | Ins_JMPR( INS_ARG )
{
DO_JMPR
}
| DoS Exec Code Overflow | 0 | Ins_JMPR( INS_ARG )
{
DO_JMPR
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,065 | Ins_JROF( INS_ARG )
{
DO_JROF
}
| DoS Exec Code Overflow | 0 | Ins_JROF( INS_ARG )
{
DO_JROF
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,066 | Ins_JROT( INS_ARG )
{
DO_JROT
}
| DoS Exec Code Overflow | 0 | Ins_JROT( INS_ARG )
{
DO_JROT
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,067 | Ins_LOOPCALL( INS_ARG )
{
FT_ULong F;
TT_CallRec* pCrec;
TT_DefRecord* def;
/* first of all, check the index */
F = args[1];
if ( BOUNDS( F, CUR.maxFunc + 1 ) )
goto Fail;
/* Except for some old Apple fonts, all functions in a TrueType */
/* font are defined in inc... | DoS Exec Code Overflow | 0 | Ins_LOOPCALL( INS_ARG )
{
FT_ULong F;
TT_CallRec* pCrec;
TT_DefRecord* def;
/* first of all, check the index */
F = args[1];
if ( BOUNDS( F, CUR.maxFunc + 1 ) )
goto Fail;
/* Except for some old Apple fonts, all functions in a TrueType */
/* font are defined in inc... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,068 | Ins_LT( INS_ARG )
{
DO_LT
}
| DoS Exec Code Overflow | 0 | Ins_LT( INS_ARG )
{
DO_LT
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,069 | Ins_LTEQ( INS_ARG )
{
DO_LTEQ
}
| DoS Exec Code Overflow | 0 | Ins_LTEQ( INS_ARG )
{
DO_LTEQ
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,070 | Ins_MAX( INS_ARG )
{
DO_MAX
}
| DoS Exec Code Overflow | 0 | Ins_MAX( INS_ARG )
{
DO_MAX
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,071 | Ins_MD( INS_ARG )
{
FT_UShort K, L;
FT_F26Dot6 D;
K = (FT_UShort)args[1];
L = (FT_UShort)args[0];
if( BOUNDS( L, CUR.zp0.n_points ) ||
BOUNDS( K, CUR.zp1.n_points ) )
{
if ( CUR.pedantic_hinting )
{
CUR.error = TT_Err_Invalid_Reference;
return;
... | DoS Exec Code Overflow | 0 | Ins_MD( INS_ARG )
{
FT_UShort K, L;
FT_F26Dot6 D;
K = (FT_UShort)args[1];
L = (FT_UShort)args[0];
if( BOUNDS( L, CUR.zp0.n_points ) ||
BOUNDS( K, CUR.zp1.n_points ) )
{
if ( CUR.pedantic_hinting )
{
CUR.error = TT_Err_Invalid_Reference;
return;
... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,072 | Ins_MDAP( INS_ARG )
{
FT_UShort point;
FT_F26Dot6 cur_dist,
distance;
point = (FT_UShort)args[0];
if ( BOUNDS( point, CUR.zp0.n_points ) )
{
if ( CUR.pedantic_hinting )
CUR.error = TT_Err_Invalid_Reference;
return;
}
/* XXX: Is there some undocu... | DoS Exec Code Overflow | 0 | Ins_MDAP( INS_ARG )
{
FT_UShort point;
FT_F26Dot6 cur_dist,
distance;
point = (FT_UShort)args[0];
if ( BOUNDS( point, CUR.zp0.n_points ) )
{
if ( CUR.pedantic_hinting )
CUR.error = TT_Err_Invalid_Reference;
return;
}
/* XXX: Is there some undocu... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,073 | Ins_MIN( INS_ARG )
{
DO_MIN
}
| DoS Exec Code Overflow | 0 | Ins_MIN( INS_ARG )
{
DO_MIN
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,074 | Ins_MINDEX( INS_ARG )
{
FT_Long L, K;
L = args[0];
if ( L <= 0 || L > CUR.args )
{
CUR.error = TT_Err_Invalid_Reference;
return;
}
K = CUR.stack[CUR.args - L];
FT_ARRAY_MOVE( &CUR.stack[CUR.args - L ],
&CUR.stack[CUR.args - L + 1],
... | DoS Exec Code Overflow | 0 | Ins_MINDEX( INS_ARG )
{
FT_Long L, K;
L = args[0];
if ( L <= 0 || L > CUR.args )
{
CUR.error = TT_Err_Invalid_Reference;
return;
}
K = CUR.stack[CUR.args - L];
FT_ARRAY_MOVE( &CUR.stack[CUR.args - L ],
&CUR.stack[CUR.args - L + 1],
... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,075 | Ins_MIRP( INS_ARG )
{
FT_UShort point;
FT_ULong cvtEntry;
FT_F26Dot6 cvt_dist,
distance,
cur_dist,
org_dist;
point = (FT_UShort)args[0];
cvtEntry = (FT_ULong)( args[1] + 1 );
/* XXX: UNDOCUMENTED! cvt[-1] = 0 always */
if ( BO... | DoS Exec Code Overflow | 0 | Ins_MIRP( INS_ARG )
{
FT_UShort point;
FT_ULong cvtEntry;
FT_F26Dot6 cvt_dist,
distance,
cur_dist,
org_dist;
point = (FT_UShort)args[0];
cvtEntry = (FT_ULong)( args[1] + 1 );
/* XXX: UNDOCUMENTED! cvt[-1] = 0 always */
if ( BO... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,076 | Ins_MPPEM( INS_ARG )
{
DO_MPPEM
}
| DoS Exec Code Overflow | 0 | Ins_MPPEM( INS_ARG )
{
DO_MPPEM
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,077 | Ins_MPS( INS_ARG )
{
DO_MPS
}
| DoS Exec Code Overflow | 0 | Ins_MPS( INS_ARG )
{
DO_MPS
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,078 | Ins_MSIRP( INS_ARG )
{
FT_UShort point;
FT_F26Dot6 distance;
point = (FT_UShort)args[0];
if ( BOUNDS( point, CUR.zp1.n_points ) ||
BOUNDS( CUR.GS.rp0, CUR.zp0.n_points ) )
{
if ( CUR.pedantic_hinting )
CUR.error = TT_Err_Invalid_Reference;
return;
}
... | DoS Exec Code Overflow | 0 | Ins_MSIRP( INS_ARG )
{
FT_UShort point;
FT_F26Dot6 distance;
point = (FT_UShort)args[0];
if ( BOUNDS( point, CUR.zp1.n_points ) ||
BOUNDS( CUR.GS.rp0, CUR.zp0.n_points ) )
{
if ( CUR.pedantic_hinting )
CUR.error = TT_Err_Invalid_Reference;
return;
}
... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,079 | Ins_MUL( INS_ARG )
{
DO_MUL
}
| DoS Exec Code Overflow | 0 | Ins_MUL( INS_ARG )
{
DO_MUL
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,080 | Ins_NEG( INS_ARG )
{
DO_NEG
}
| DoS Exec Code Overflow | 0 | Ins_NEG( INS_ARG )
{
DO_NEG
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,081 | Ins_NEQ( INS_ARG )
{
DO_NEQ
}
| DoS Exec Code Overflow | 0 | Ins_NEQ( INS_ARG )
{
DO_NEQ
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,082 | Ins_NOT( INS_ARG )
{
DO_NOT
}
| DoS Exec Code Overflow | 0 | Ins_NOT( INS_ARG )
{
DO_NOT
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,083 | Ins_NPUSHB( INS_ARG )
{
FT_UShort L, K;
L = (FT_UShort)CUR.code[CUR.IP + 1];
if ( BOUNDS( L, CUR.stackSize + 1 - CUR.top ) )
{
CUR.error = TT_Err_Stack_Overflow;
return;
}
for ( K = 1; K <= L; K++ )
args[K - 1] = CUR.code[CUR.IP + K + 1];
CUR.new_top += L;
}
| DoS Exec Code Overflow | 0 | Ins_NPUSHB( INS_ARG )
{
FT_UShort L, K;
L = (FT_UShort)CUR.code[CUR.IP + 1];
if ( BOUNDS( L, CUR.stackSize + 1 - CUR.top ) )
{
CUR.error = TT_Err_Stack_Overflow;
return;
}
for ( K = 1; K <= L; K++ )
args[K - 1] = CUR.code[CUR.IP + K + 1];
CUR.new_top += L;
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,084 | Ins_NPUSHW( INS_ARG )
{
FT_UShort L, K;
L = (FT_UShort)CUR.code[CUR.IP + 1];
if ( BOUNDS( L, CUR.stackSize + 1 - CUR.top ) )
{
CUR.error = TT_Err_Stack_Overflow;
return;
}
CUR.IP += 2;
for ( K = 0; K < L; K++ )
args[K] = GET_ShortIns();
CUR.step_ins = FALSE;
... | DoS Exec Code Overflow | 0 | Ins_NPUSHW( INS_ARG )
{
FT_UShort L, K;
L = (FT_UShort)CUR.code[CUR.IP + 1];
if ( BOUNDS( L, CUR.stackSize + 1 - CUR.top ) )
{
CUR.error = TT_Err_Stack_Overflow;
return;
}
CUR.IP += 2;
for ( K = 0; K < L; K++ )
args[K] = GET_ShortIns();
CUR.step_ins = FALSE;
... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,085 | Ins_NROUND( INS_ARG )
{
DO_NROUND
}
| DoS Exec Code Overflow | 0 | Ins_NROUND( INS_ARG )
{
DO_NROUND
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,086 | Ins_ODD( INS_ARG )
{
DO_ODD
}
| DoS Exec Code Overflow | 0 | Ins_ODD( INS_ARG )
{
DO_ODD
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,087 | Ins_OR( INS_ARG )
{
DO_OR
}
| DoS Exec Code Overflow | 0 | Ins_OR( INS_ARG )
{
DO_OR
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,088 | Ins_POP( INS_ARG )
{
/* nothing to do */
}
| DoS Exec Code Overflow | 0 | Ins_POP( INS_ARG )
{
/* nothing to do */
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,089 | Ins_PUSHB( INS_ARG )
{
FT_UShort L, K;
L = (FT_UShort)( CUR.opcode - 0xB0 + 1 );
if ( BOUNDS( L, CUR.stackSize + 1 - CUR.top ) )
{
CUR.error = TT_Err_Stack_Overflow;
return;
}
for ( K = 1; K <= L; K++ )
args[K - 1] = CUR.code[CUR.IP + K];
}
| DoS Exec Code Overflow | 0 | Ins_PUSHB( INS_ARG )
{
FT_UShort L, K;
L = (FT_UShort)( CUR.opcode - 0xB0 + 1 );
if ( BOUNDS( L, CUR.stackSize + 1 - CUR.top ) )
{
CUR.error = TT_Err_Stack_Overflow;
return;
}
for ( K = 1; K <= L; K++ )
args[K - 1] = CUR.code[CUR.IP + K];
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,090 | Ins_PUSHW( INS_ARG )
{
FT_UShort L, K;
L = (FT_UShort)( CUR.opcode - 0xB8 + 1 );
if ( BOUNDS( L, CUR.stackSize + 1 - CUR.top ) )
{
CUR.error = TT_Err_Stack_Overflow;
return;
}
CUR.IP++;
for ( K = 0; K < L; K++ )
args[K] = GET_ShortIns();
CUR.step_ins = FALSE;... | DoS Exec Code Overflow | 0 | Ins_PUSHW( INS_ARG )
{
FT_UShort L, K;
L = (FT_UShort)( CUR.opcode - 0xB8 + 1 );
if ( BOUNDS( L, CUR.stackSize + 1 - CUR.top ) )
{
CUR.error = TT_Err_Stack_Overflow;
return;
}
CUR.IP++;
for ( K = 0; K < L; K++ )
args[K] = GET_ShortIns();
CUR.step_ins = FALSE;... | @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,091 | Ins_RCVT( INS_ARG )
{
DO_RCVT
}
| DoS Exec Code Overflow | 0 | Ins_RCVT( INS_ARG )
{
DO_RCVT
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,092 | Ins_RDTG( INS_ARG )
{
DO_RDTG
}
| DoS Exec Code Overflow | 0 | Ins_RDTG( INS_ARG )
{
DO_RDTG
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,093 | Ins_ROFF( INS_ARG )
{
DO_ROFF
}
| DoS Exec Code Overflow | 0 | Ins_ROFF( INS_ARG )
{
DO_ROFF
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,094 | Ins_ROLL( INS_ARG )
{
FT_Long A, B, C;
FT_UNUSED_EXEC;
A = args[2];
B = args[1];
C = args[0];
args[2] = C;
args[1] = A;
args[0] = B;
}
| DoS Exec Code Overflow | 0 | Ins_ROLL( INS_ARG )
{
FT_Long A, B, C;
FT_UNUSED_EXEC;
A = args[2];
B = args[1];
C = args[0];
args[2] = C;
args[1] = A;
args[0] = B;
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,095 | Ins_ROUND( INS_ARG )
{
DO_ROUND
}
| DoS Exec Code Overflow | 0 | Ins_ROUND( INS_ARG )
{
DO_ROUND
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,096 | Ins_RS( INS_ARG )
{
DO_RS
}
| DoS Exec Code Overflow | 0 | Ins_RS( INS_ARG )
{
DO_RS
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,097 | Ins_RTG( INS_ARG )
{
DO_RTG
}
| DoS Exec Code Overflow | 0 | Ins_RTG( INS_ARG )
{
DO_RTG
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,098 | Ins_RTHG( INS_ARG )
{
DO_RTHG
}
| DoS Exec Code Overflow | 0 | Ins_RTHG( INS_ARG )
{
DO_RTHG
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
8,099 | Ins_S45ROUND( INS_ARG )
{
DO_S45ROUND
}
| DoS Exec Code Overflow | 0 | Ins_S45ROUND( INS_ARG )
{
DO_S45ROUND
}
| @@ -6755,8 +6755,8 @@
end_point = CUR.pts.contours[contour] - CUR.pts.first_point;
first_point = point;
- if ( CUR.pts.n_points <= end_point )
- end_point = CUR.pts.n_points;
+ if ( BOUNDS ( end_point, CUR.pts.n_points ) )
+ end_point = CUR.pts.n_points - 1;
while ( po... | CWE-119 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.