console: Abort on property access errors
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · Kirill Batuzov
All defined properties of QemuConsole are mandatory and no access to them should fail. Nevertheless not checking returned errors is bad because in case of unexpected failure it will hide the bug and cause a memory leak.
Abort in case of unexpected property access errors. This change exposed a bug where an attempt was made to write to a read-only property "head".
Set "head" property's value at creation time and do not attempt to change it later. This fixes the bug mentioned above.
Quoted 9 lines
Signed-off-by Kirill Batuzov <[email protected]>--- ui/console.c | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-)v1 -> v2:
Use&error_abortinstead of silently ignoring errors. Properly initialize property "head".
Ping?
The other patches of the series have been applied already. This is the only one remaining.
Signature · 1 line
Kirill
Quoted 9 lines · Kirill Batuzov
All defined properties of QemuConsole are mandatory and no access to them should fail. Nevertheless not checking returned errors is bad because in case of unexpected failure it will hide the bug and cause a memory leak.
Abort in case of unexpected property access errors. This change exposed a bug where an attempt was made to write to a read-only property "head".
Set "head" property's value at creation time and do not attempt to change it later. This fixes the bug mentioned above.
Picked into my console branch.
thanks,
Gerd