bugThe FreeType Project - Bugs: bug #44421, FreeType crash when calling...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #44421: FreeType crash when calling FT_Load_Sfnt_Table on android x86_64, ndkr10d

Submitter:  None
Submitted:  Wed 04 Mar 2015 07:58:23 AM UTC
   
 
Severity:  3 - Normal Item Group:  Crash
Status:  Invalid Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  None

Wed 04 Mar 2015 10:04:57 AM UTC, comment #4: 

OK.

Werner LEMBERG <wl>
Group administrator
Wed 04 Mar 2015 09:35:07 AM UTC, comment #3: 

Sorry to bother you:(, it seems to be my eclipse project's problem.
I establish a new project, and the crash goes away.

Jim Young <jimyoung>
Wed 04 Mar 2015 08:36:33 AM UTC, comment #2: 

Please convert your crashing snippet into a small, stand-alone (and crashing) program that I can compile, run, and test on my GNU/Linux box.

Werner LEMBERG <wl>
Group administrator
Wed 04 Mar 2015 08:04:51 AM UTC, comment #1: 

PS: I'm using FT 2.5.5.

Jim Young <jimyoung>
Wed 04 Mar 2015 07:58:23 AM UTC, original submission:  

It seems if FT_Face reads font data from stream, the crash happens.

I've tried to use like this :

FT_Library ftlibrary;
FT_Init_FreeType(&ftlibrary);
FT_Open_Args args;
args.flags = FT_OPEN_PATHNAME;
args.pathname = (FT_String*)"/system/fonts/DroidSans.ttf";
DEBUG("Opening face: %s", args.pathname);
FT_Face face;
if (FT_Open_Face(pFTLibrary, &args, 0, &face))
return 0;
DEBUG("Opening face: %s, done. family_name = %s", args.pathname, face->family_name);

FT_ULong size;
DEBUG("Loading whole font..");
FT_Load_Sfnt_Table(face, 0, 0, NULL, &size);
DEBUG("Loading whole font..done. size = %lu", size);

and I got debug messages:
 
Opening face: /system/fonts/DroidSans.ttf
Opening face: /system/fonts/DroidSans.ttf, done. family_name = Roboto
Loading whole font..
--------- beginning of crash
Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 2948 (com.testfreetype)

The same crash happens when I open face with customized FT_Stream and read&close functions of my stream.

I'm using NDK-r10 and target android platform is API21, target arch is x86_x64.

I run following configs:

./configure --prefix=/home/s/fttt/ --host=x86_64-linux-android --without-zlib --with-harfbuzz=no --with-png=no


thanks a lot :)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by jimyoung (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-04 wl StatusNeed Info Invalid
        Open/ClosedOpen Closed
    2015-03-04 wl StatusNone Need Info
        Assigned toNone wl

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code