[bitc-dev] bitc.stdio.read-byte/write-byte are broken
Jonathan S. Shapiro
shap at eros-os.com
Sun Dec 7 22:22:28 CST 2008
I believe that this should now be fixed.
Be aware that the current stdio implementation is a place-holder until we
get literal instantiation done.
On Wed, Dec 3, 2008 at 5:00 PM, Thomas Kuehne <thomas at kuehne.cn> wrote:
> bitc_stdio_read_byte and bitc_stdio_write_byte check success via
> fread/fwrite < 0, however both have the return type size_t and thus
> the check never fails. It should be 1 instead of 0 in both cases.
> In addition neither of them check if the file actually is open
> (NULL == ios->f) and thus segfault if the stream has been closed.
> bitc-dev mailing list
> bitc-dev at coyotos.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the bitc-dev