Menu

#24 Stream size error in HPDF_MemStream_WriteFunc?

open
nobody
None
5
2009-04-16
2009-04-16
No

Assuming that the size field of the stream is supposed to represent the contents of the stream, then HPDF_MemStream_WriteFunc appears to have an error in that the size field of the memory stream is not updated. Nor is the memory stream's size field updated in the call it makes to HPDF_MemStream_InWrite.

Presumably the stream's size field should be updated with the siz parameter just before HPDF_MemStream_WriteFunc returns HPDF_OK.

stream->size += siz;

Does this make sense?

Discussion


Log in to post a comment.

MongoDB Logo MongoDB