msrledec: check bounds before constructing a possibly invalid pointer,