diff options
author | Mike Primm <mike@primmhome.com> | 2013-04-15 15:51:18 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2013-04-15 22:50:20 -0500 |
commit | 40e630871855255c14c78beaf8c63e7aa6b3c930 (patch) | |
tree | 09d44ab928f488d5525d9140152f1932f09a5669 /src/main/java/net/minecraft/server/ChunkRegionLoader.java | |
parent | 928e4d9bbb9f47bc11a89cd3a537dcc651f2b33a (diff) | |
download | craftbukkit-40e630871855255c14c78beaf8c63e7aa6b3c930.tar craftbukkit-40e630871855255c14c78beaf8c63e7aa6b3c930.tar.gz craftbukkit-40e630871855255c14c78beaf8c63e7aa6b3c930.tar.lz craftbukkit-40e630871855255c14c78beaf8c63e7aa6b3c930.tar.xz craftbukkit-40e630871855255c14c78beaf8c63e7aa6b3c930.zip |
Validate chunk data array lengths. Fixes BUKKIT-4093
If a chunk has somehow managed to save with arrays that are not 4096
entries long when reading them again we will get exceptions. Checking the
array length and resizing if needed is cheap so we should do this to help
avoid crashing servers due to this error.
Diffstat (limited to 'src/main/java/net/minecraft/server/ChunkRegionLoader.java')
0 files changed, 0 insertions, 0 deletions