summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/WorldStorage/FastNBT/Parse.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/WorldStorage/FastNBT/Parse.cpp b/tests/WorldStorage/FastNBT/Parse.cpp
index a57e5861e..94136a3ae 100644
--- a/tests/WorldStorage/FastNBT/Parse.cpp
+++ b/tests/WorldStorage/FastNBT/Parse.cpp
@@ -23,4 +23,17 @@ int main() {
testassert(!nbt.IsValid());
}
+
+ {
+ char data[] = {10, 0, 0, 0x7F, -0x7F};
+ cParsedNBT nbt{data, 5};
+
+ testassert(!nbt.IsValid());
+ }
+ {
+ char data[] = {2, 0, 0, 0x7F, -0x7F};
+ cParsedNBT nbt{data, 5};
+
+ testassert(!nbt.IsValid());
+ }
}