Issue 8301 - Access violation when a big array is allocated

Check that adding array padding doesn't cause overflow

https://d.puremagic.com/issues/show_bug.cgi?id=8301