From 387bffd8628b9f0478dc517b35ec416afba6fd69 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 9 Jan 2016 09:48:43 -0800 Subject: [PATCH 1/1] Require strings used as characters to be one byte. --- Execute.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Execute.cpp b/Execute.cpp index 3f00a87..6df536e 100644 --- a/Execute.cpp +++ b/Execute.cpp @@ -750,6 +750,7 @@ void Primitive::PoolFFI(CYPool *pool, JSContextRef context, ffi_type *ffi, CYJSString script(context, value); auto string(CYCastUTF16String(script)); _assert(string.size == 1); + _assert((string.data[0] & 0xff) == string.data[0]); *reinterpret_cast(data) = string.data[0]; } } -- 2.45.2