diff options
author | tycho <work.tycho@gmail.com> | 2015-12-15 22:46:22 +0100 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2016-01-18 17:31:46 +0100 |
commit | 3a39639b1e3bbd272548c7afbf64c33d45d1fefb (patch) | |
tree | aeaf384d5265671f9bddb31d8e90b8519b1af69b /src | |
parent | Merge pull request #2895 from LogicParrot/readme (diff) | |
download | cuberite-3a39639b1e3bbd272548c7afbf64c33d45d1fefb.tar cuberite-3a39639b1e3bbd272548c7afbf64c33d45d1fefb.tar.gz cuberite-3a39639b1e3bbd272548c7afbf64c33d45d1fefb.tar.bz2 cuberite-3a39639b1e3bbd272548c7afbf64c33d45d1fefb.tar.lz cuberite-3a39639b1e3bbd272548c7afbf64c33d45d1fefb.tar.xz cuberite-3a39639b1e3bbd272548c7afbf64c33d45d1fefb.tar.zst cuberite-3a39639b1e3bbd272548c7afbf64c33d45d1fefb.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/WorldStorage/FastNBT.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/WorldStorage/FastNBT.cpp b/src/WorldStorage/FastNBT.cpp index 1a81a6469..d4e781af1 100644 --- a/src/WorldStorage/FastNBT.cpp +++ b/src/WorldStorage/FastNBT.cpp @@ -64,6 +64,13 @@ bool cParsedNBT::Parse(void) // Data too short return false; } + + if (m_Data == nullptr) + { + // Invalid Data + return false; + } + if (m_Data[0] != TAG_Compound) { // The top-level tag must be a Compound |