Re: [PATCH 2/9] ui: Fix silent truncation of numeric keys in HMP sendkey

2022-12-01 Thread Daniel P . Berrangé
On Thu, Dec 01, 2022 at 07:13:04AM +0100, Markus Armbruster wrote: > Keys are int. HMP sendkey assigns them from the value strtoul(), > silently truncating values greater than INT_MAX. Fix to reject them. > > While there, use qemu_strtoul() instead of strtoul() so checkpatch.pl > won't complain.

[PATCH 2/9] ui: Fix silent truncation of numeric keys in HMP sendkey

2022-11-30 Thread Markus Armbruster
Keys are int. HMP sendkey assigns them from the value strtoul(), silently truncating values greater than INT_MAX. Fix to reject them. While there, use qemu_strtoul() instead of strtoul() so checkpatch.pl won't complain. Signed-off-by: Markus Armbruster --- monitor/hmp-cmds.c | 9 +++-- 1