v86/lib
Ernest Wong 5778076c2b 9P read(dir) handle case when offset exceeds available
Previously:
(1) The number of bytes to read (aka count) is readjusted to become negative.
Driver reports bogus count value.
(2) However, when sending the data through virtio, the payload buffer was
incorrectly subarrayed with the negative end-offset, so wrong data was
still sent through.

Now:
(1) 9P read(dir) now clamps the count value to non-negative numbers.
(2) Add asserts for negative replybuffersize and payloadsize as those
should not happen in the first place.
2020-08-30 19:27:07 -05:00
..
9p.js 9P read(dir) handle case when offset exceeds available 2020-08-30 19:27:07 -05:00
closure-base.js Use @export 2016-07-26 22:14:34 +02:00
filesystem.js Implement number of links nlinks 2020-08-30 19:27:02 -05:00
jor1k.js Avoid unncessary copy when converting Buffer to ArrayBuffer 2020-08-30 19:27:02 -05:00
marshall.js Optimise 9p.ReceiveRequest by replacing GetByte with buffers 2020-08-30 19:27:02 -05:00
utf8.js Backport filesystem and 9p changes from jor1k. Thanks @s-macke 2016-01-04 04:16:00 +01:00