Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(721)

Side by Side Diff: core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1load.c

Issue 354413002: Fix uninitialized font_offset (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: init temp and temp_scale Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1gload.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /***************************************************************************/ 1 /***************************************************************************/
2 /* */ 2 /* */
3 /* t1load.c */ 3 /* t1load.c */
4 /* */ 4 /* */
5 /* Type 1 font loader (body). */ 5 /* Type 1 font loader (body). */
6 /* */ 6 /* */
7 /* Copyright 1996-2013 by */ 7 /* Copyright 1996-2013 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9 /* */ 9 /* */
10 /* This file is part of the FreeType project, and may only be used, */ 10 /* This file is part of the FreeType project, and may only be used, */
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 /* and `/CharStrings' dictionaries. */ 1093 /* and `/CharStrings' dictionaries. */
1094 1094
1095 static void 1095 static void
1096 t1_parse_font_matrix( T1_Face face, 1096 t1_parse_font_matrix( T1_Face face,
1097 T1_Loader loader ) 1097 T1_Loader loader )
1098 { 1098 {
1099 T1_Parser parser = &loader->parser; 1099 T1_Parser parser = &loader->parser;
1100 FT_Matrix* matrix = &face->type1.font_matrix; 1100 FT_Matrix* matrix = &face->type1.font_matrix;
1101 FT_Vector* offset = &face->type1.font_offset; 1101 FT_Vector* offset = &face->type1.font_offset;
1102 FT_Face root = (FT_Face)&face->root; 1102 FT_Face root = (FT_Face)&face->root;
1103 FT_Fixed temp[6]; 1103 FT_Fixed temp[6] = {0, 0, 0, 0, 0, 0};
1104 FT_Fixed temp_scale; 1104 FT_Fixed temp_scale = 0;
1105 FT_Int result; 1105 FT_Int result;
1106 1106
1107 1107
1108 result = T1_ToFixedArray( parser, 6, temp, 3 ); 1108 result = T1_ToFixedArray( parser, 6, temp, 3 );
1109 1109
1110 if ( result < 0 ) 1110 if ( result < 0 )
1111 { 1111 {
1112 parser->root.error = FT_THROW( Invalid_File_Format ); 1112 parser->root.error = FT_THROW( Invalid_File_Format );
1113 return; 1113 return;
1114 } 1114 }
(...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
2263 type1->encoding.num_chars = loader.num_chars; 2263 type1->encoding.num_chars = loader.num_chars;
2264 } 2264 }
2265 2265
2266 Exit: 2266 Exit:
2267 t1_done_loader( &loader ); 2267 t1_done_loader( &loader );
2268 return error; 2268 return error;
2269 } 2269 }
2270 2270
2271 2271
2272 /* END */ 2272 /* END */
OLDNEW
« no previous file with comments | « core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1gload.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698