ide: Treat read/write beyond end as invalid