fix length mismatch
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 10s
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 10s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user