linxingang / sfntly

Automatically exported from code.google.com/p/sfntly
0 stars 0 forks source link

C++ inline methods in nested classes break with -fPIC and gcc #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There are some inline methods in nested classes. These break when sfntly is 
compiled with gcc using -fPIC (for creation of a shared library). The methods 
return incorrect results, which can lead to generation of corrupted 
fonts/segfaults/etc.

Here is a patch that fixes this for the loca table (there may be other places 
that exhibit this issue, but this is the only one that impacted me, so far).

http://bazaar.launchpad.net/~kovid/calibre/trunk/revision/13579

Original issue reported on code.google.com by adse...@calibre-ebook.com on 30 Oct 2012 at 6:10

GoogleCodeExporter commented 9 years ago
Another instance: 
http://bazaar.launchpad.net/~kovid/calibre/trunk/revision/13583

Original comment by adse...@calibre-ebook.com on 30 Oct 2012 at 11:00