View Single Post
Old 17 April 2020, 19:26   #1
coldacid
WinUAE 1200/40

coldacid's Avatar
 
Join Date: Apr 2020
Location: Candinavia
Posts: 223
[OS4] newlib 53.30 bug in read()

Since Hyperion takes forever to activate registrations for their forums, I'll complain here instead. Anyway, the contract for the POSIX standard
ssize_t read(int fd, void *buf, size_t count)
function is that the return value needs to be in the range -1 <= retval < count. However, when fd is stdin there are situations where count is less than the return value.


So far it happens when terminal attributes are changed to disable echoing and canonical input, and minimum read is set to 1. I'm working on producing a test case that reproduces the bug which I'll add here later.

Last edited by coldacid; 17 April 2020 at 19:46.
coldacid is offline  
 
Page generated in 0.06117 seconds with 11 queries