zapret-antidpi: oob error if char != 1 symbol

This commit is contained in:
bol-van committed 2026-01-16 15:05:23 +03:00
1 parent 201dd40b46
commit 704c73f821
1 file changed
+1 -1
+1 -1
View File
@@ -1087,7 +1087,7 @@ 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
if #oob~=1 then
error("oob: OOB must be exactly one byte")
end
local dis_oob = deepcopy(desync.dis)