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.
d0eef26687Tom Maenan Read Cutting committed on 12/12/2022, 8:10:59 PM· committed by Andrew Kelleyparent09cc6b4