Constrain bytes read/written to positive values.
ok miod@ tedu@