ipr: Fix out-of-bounds null overwrite