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

 
 

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

Submitted by:  None
Submitted on:  Wed 04 Mar 2015 07:58:23 AM UTC  
 
Severity: 3 - NormalItem Group: Crash
Status: InvalidPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

OK.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 04 Mar 2015 10:04:57 AM UTCwlStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Wed 04 Mar 2015 08:36:33 AM UTCwlStatusNone=>Need Info
      Assigned toNone=>wl

    Back to the top


    Powered by Savane 3.1-cleanup1