nanogui: [patch] fix fault for NX native font reader


Previous by date: 15 Jul 2005 17:48:42 +0100 [patch] t1 font demo missing config file path, Alexander Stohr
Next by date: 15 Jul 2005 17:48:42 +0100 Re: [patch] fix for zero width/height rectangles, Aaron J. Grier
Previous in thread:
Next in thread:

Subject: [patch] fix fault for NX native font reader
From: "Alexander Stohr" ####@####.####
Date: 15 Jul 2005 17:48:42 +0100
Message-Id: <000501c5895c$e2450da0$9b01a8c0@starlightpc>

Hello,

after wondering where the native fonts are
i fiddled out that i have to manually convert
them with the provided application. (wondering
why thats not already done on the build machine
with a natively compiled tool...)

then i started testing and faced a segfault
because ftell was called directly whilst the
other file operations were done trough the
upper case overloaded versions for the fileio.
there is no overload for ftell.

the only location ftell was used was for the
purpose of aligning the read location to a
32 bit boundary. if it was mis aligned, then
just only because of the preceeding read loop.
i am now just using the loop counter for deciding
if an extra read for alignment is needed.

see attached patch.

-Alex.

PS: i am enjoying the NX package more and more.
the bugs you might see on the target machine
(and would give your pain to debug there) are
most often reproducible with gdb on the build
host. that benefits to the speed of development.

[Content type application/octet-stream not shown. Download]

Previous by date: 15 Jul 2005 17:48:42 +0100 [patch] t1 font demo missing config file path, Alexander Stohr
Next by date: 15 Jul 2005 17:48:42 +0100 Re: [patch] fix for zero width/height rectangles, Aaron J. Grier
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.