[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.
> Thomas
> _______________________________________________
> bitc-dev mailing list
> bitc-dev at coyotos.org
> http://www.coyotos.org/mailman/listinfo/bitc-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.coyotos.org/pipermail/bitc-dev/attachments/20081207/ccc3e825/attachment.html 

More information about the bitc-dev mailing list