pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pdf-devel] pdf-fsys-disk.c: fpos_t VS size_t


From: Jose E . Marchesi
Subject: Re: [pdf-devel] pdf-fsys-disk.c: fpos_t VS size_t
Date: Thu, 01 Apr 2010 13:41:53 +0200 (CEST)

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    address@hidden
GNU Project         http://www.gnu.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]