6788196: (porting) Bounds checks in io_util.c rely on undefined behaviour

Reviewed-by: alanb
2 files changed