pdf-tasks
[Top][All Lists]
Advanced

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

[pdf-tasks] [flyspray] Incorrect usage of fsetpos() in the disk filesyst


From: GNU PDF Library
Subject: [pdf-tasks] [flyspray] Incorrect usage of fsetpos() in the disk filesystem implementation
Date: Wed, 31 Mar 2010 17:08:40 +0200

THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened. Details are below. User who did this - Aleksander Morgado (aleksander)
Attached to Project - GNU PDF Library
Summary - Incorrect usage of fsetpos() in the disk filesystem implementation
Task Type - Sporadic Task
Category - Filesystem Module
Status - NEXT
Assigned To - Operating System - All
Severity - Medium
Priority - Normal
Reported Version - START
Due in Version - BASE-LAYER-0
Due Date - Undecided
Details - Quoting fsetpos() reference:
The fsetpos() function sets the file position and state indicators for the stream pointed to by stream according to the value of the object pointed to by pos, which must be a value obtained from an earlier call to fgetpos() on the same stream.
Currently fsetpos() is being used in this way (where new_pos is a pdf_size_t):
fsetpos(((pdf_fsys_disk_file_t)file->data)->file_descriptor, \
       (fpos_t*)&new_pos)

The correct way of using fsetpos() is to use a fpos_t obtained with fgetpos() 
previously.

Note that fpos_t needs to be used as an opaque struct, so shouldn't be 
initialized manually.

More information can be found at the following URL:
http://www.gnupdf.org/flyspray/index.php?do=details&task_id=114

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.




reply via email to

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