bugThe FreeType Project - Bugs: bug #48962, 64-bit support in file system...

 
 

bug #48962: 64-bit support in file system access (stat vs stat64)

Submitted by:  Jungshik Shin <jungshik>
Submitted on:  Wed 31 Aug 2016 05:55:34 PM UTC  
 
Severity: 3 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.7.0

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 02 Sep 2016 10:07:08 PM UTC, comment #1:

I've added a call to AC_SYS_LARGEFILE in FreeType's git repository. It seems to compile fine in 32bit mode; however, I didn't actually run tests, so please reopen this issue in case further actions are necessary.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Wed 31 Aug 2016 05:55:34 PM UTC, original submission:

This comes from Chromium OS and gentoo bugs below:

https://bugs.gentoo.org/471102

https://bugs.chromium.org/p/chromium/issues/detail?id=464024

To quote a part of the CrOS bug mentioned above:

<q>
To support large device major/minor numbers that come up with some devices, stat64 has to be used instead of stat. stat will return EOVERFLOW with these large minor numbers
</q>

See also comment 4 from the CrOS bug:

<q>
another option for autoconf based packages is to use this macro in configure.ac:
AC_USE_SYSTEM_EXTENSIONS

that will turn on all the fun extensions that people generally want (GNU/LFS/etc...). if the project wants to be portable, then use this macro:
AC_SYS_LARGEFILE

do that after the call to AC_PROG_CC.

note that by switching to LFS, you might find latent bugs in the code where they use int or long to hold offsets instead of off_t, or they assume sizeof(off_t) == sizeof(long). for the most part, it probably won't be an issue, including stat() usage. just keep it in mind if you get build warnings / weird runtime crashes. in my experience, it's not generally a problem.
</q>

Jungshik Shin <jungshik>

 

(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 jungshik (Submitted the item)
  • -unavailable- added by jungshik
  •  

    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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 02 Sep 2016 10:07:08 PM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.7.0
    Wed 31 Aug 2016 05:55:34 PM UTCjungshikCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1