[Poppler-bugs] [Bug 97506] GooString wastes 4 bytes on 64-bit systems

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Aug 27 19:45:46 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=97506

--- Comment #3 from Jakub Kucharski <jakubkucharski97 at gmail.com> ---
If the current behavior is intended to keep length at aligned offset, then
maybe GooString could be made bigger, because 16 bytes for sStatic on a 64-bit
system (they usually have a bit more RAM than 32-bit systems, so it could be
made use of) seems a bit small to me. I've tried that by defining
STR_FINAL_SIZE as:

static const int STR_FINAL_SIZE = 8 * sizeof(char*); // 32 on a 32-bit system,
64 on a 64-bit one

, but for some reason it breaks PDFDoc construction in PDFDocFactory (a problem
in a "new" operator function - not sure which though). If you say the above
line is desirable, then I could take some time and debug the issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20160827/40a7a6b7/attachment.html>


More information about the Poppler-bugs mailing list