fix length mismatch
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 10s

This commit is contained in:
2026-03-07 17:10:19 +01:00
parent 1fdf6ae3b9
commit 02f76144fa

View File

@@ -524,7 +524,7 @@ def _emit_ingress_event(cpu: int, data: int, size: int) -> None:
raw_size = size - ct.sizeof(Event)
if raw_size > 0:
raw = ct.string_at(data + ct.sizeof(Event), raw_size)
raw = ct.string_at(data + ct.sizeof(Event), min(raw_size, int(event.length)))
payload["raw_b64"] = base64.b64encode(raw).decode("ascii")
print(json.dumps(payload, separators=(",", ":")), flush=True)