Fix issue #3273: Add additional bounds checks to ASE loader.