From 6c13ec8190cf4c15e0ab98df241d65d72a1dc11e Mon Sep 17 00:00:00 2001 From: Mike Samsonov Date: Tue, 14 May 2019 15:45:57 +0100 Subject: [PATCH] fix for clang runtime checks for overflow --- code/FBXUtil.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/FBXUtil.cpp b/code/FBXUtil.cpp index 43c1a3bbb..0c73ba9f9 100644 --- a/code/FBXUtil.cpp +++ b/code/FBXUtil.cpp @@ -170,6 +170,7 @@ size_t DecodeBase64(const char* in, size_t inLength, uint8_t* out, size_t maxOut { out[dst_offset++] = static_cast((val >> valb) & 0xFF); valb -= 8; + val &= 0xFFF; } } return dst_offset;