Searched hist:11684 (Results 1 - 1 of 1) sorted by relevance
/gem5/src/sim/ | ||
H A D | syscall_emul.cc | 11684:b3c3893811af Sat Oct 15 16:06:00 EDT 2016 Nicolas Derumigny <nderumigny@gmail.com> syscall: read() should not write anything if reading EOF. Read() should not write anything when returning 0 (EOF). This patch does not correct the same bug occuring for : nbr_read=read(file, buf, nbytes) When nbr_read<nbytes, nbytes bytes are copied into the virtual RAM instead of nbr_read. If buf is smaller than nbytes, a page fault occurs, even if buf is in fact bigger than nbr_read. Signed-off-by: Jason Lowe-Power <jason@lowepower.com> |
Completed in 31 milliseconds