From ad75b6af448cb6957d753d8e9b24957752e0f27f Mon Sep 17 00:00:00 2001 From: Kearwood Gilbert Date: Wed, 7 Oct 2026 22:28:47 -0700 Subject: [PATCH] Fix gltf json parsing error due to insufficient buffer padding. --- kraken/resources/KRResource+gltf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kraken/resources/KRResource+gltf.cpp b/kraken/resources/KRResource+gltf.cpp index 16356ec..58a612b 100644 --- a/kraken/resources/KRResource+gltf.cpp +++ b/kraken/resources/KRResource+gltf.cpp @@ -450,7 +450,7 @@ KRBundle* KRResource::LoadGltf(KRContext& context, const std::string& path) jsonData.expand(SIMDJSON_PADDING); jsonData.lock(); - auto error = parser.iterate((const char*)jsonData.getStart(), jsonData.getSize()).get(doc); + auto error = parser.iterate((uint8_t*)jsonData.getStart(), jsonData.getSize() - SIMDJSON_PADDING, jsonData.getSize()).get(doc); jsonData.unlock(); if (error) {