[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] Re: Bug in pdf_stm_flush()
From: |
jemarch |
Subject: |
Re: [pdf-devel] Re: Bug in pdf_stm_flush() |
Date: |
Mon, 09 Feb 2009 21:31:24 +0100 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
Hi Lukasz.
pdf_stm_flush works fine, however i can't see any way of making
more room in beckend. Using pdf_stm_seek(stm, 0) cause that data
in input bufer of null filter is lost. I think making public
pdf_stm_be_seek(stm->beckend, 0). or ability to get beckend of
writing stream and apply it to reading stream.
Streams operating on filesystem open files are always initialized with
a pdf_fsys_file_t that is known to the client. Thus, the client can
resize it, using the set_size function.
Another idea is that pdf_stm_flush schould return PDF_EINVOP, when
reading stream is used. Now there is returned 0.
Agreed.
That is all. I am sending also patch with changes to:
torture/unit/Makefile.am
torture/unit/base/stm/tsuite-stm.c
and a file torture/unit/base/stm/pdf-stm-flush.c
Thanks. I will apply the patch as soon as we get your papers.
--
Jose E. Marchesi <address@hidden>
http://www.jemarch.net
GNU Project http://www.gnu.org