Add 0-length buffer checks to os.read & os.write

This helps prevent errors related to undefined pointers being passed
through to some OS apis when slices have 0 length.

Tests have also been added to catch these cases.
b5222f86eeTom Maenan Read Cutting committed on 1/9/2023, 10:04:10 PM· committed by Andrew Kelleyparent7d0d99a
2 files changedLine totals unavailable