Hi Yang.
    
    I got abnormal output file with size bigger than 1.5 TB. Debugging
    found the reason is failure calls of fsetpos.

We cannot access to the internals of the fpos_t type.  It is declared
as opaque by the libc and its internal structure may change in
different systems.

The code in pdf-fsys-disk.c is incorrect, since fpos_t is defined as a
structure by glibc.  At this point I think that we should use
ftell/fseek with SEEK_SET instead of the f(set|get)pos functions.

--
Jose E. Marchesi    [email protected]
GNU Project         http://www.gnu.org


Reply via email to