From 201dd40b46c5a29120fb5dd486846880669d5df6 Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 16 Jan 2026 15:04:16 +0300 Subject: [PATCH] zapret-antidpi: oob error if char > 1 symbol --- lua/zapret-antidpi.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/zapret-antidpi.lua b/lua/zapret-antidpi.lua index 3aade59..c90b4a9 100644 --- a/lua/zapret-antidpi.lua +++ b/lua/zapret-antidpi.lua @@ -1087,6 +1087,9 @@ function oob(ctx, desync) end else local oob = desync.arg.char or (desync.arg.byte and bu8(desync.arg.byte) or nil) or "\x00" + if #oob>1 then + error("oob: OOB must be exactly one byte") + end local dis_oob = deepcopy(desync.dis) local urp if not desync.arg.urp or desync.arg.urp=='b' then