Files
osy 74e0e03782 manager: do not let the guest agent crash the host
The guest agent channel carries bytes the guest writes, but QEMUManager
handled them as if they came from QEMU's QMP monitor:

- any "event" was passed to qapi_event_dispatch(), which aborts on an
  unknown name (qapi_enum_parse with &error_abort), and a known name
  ran QEMUMonitor's handler with a QEMUGuestAgent (unrecognized
  selector -delegate);
- an "error" reply that is not a dictionary, or has no "desc", raised
  an exception or failed the "Both dict and err are null" assertion.

The guest agent protocol has no events, so QEMUGuestAgent now ignores
them. QEMUManager also ignores event names it does not know instead of
aborting, and reads "error" defensively.

See utmapp/UTM#7684

Assisted-by: Claude:claude-opus-5-5
2026-11-14 16:00:41 -08:00
..
2025-07-28 13:00:54 -07:00