Merge pull request #9321 from Pokechu22/sw-copyregion Software: Fix out of bounds accesses in CopyRegion