Li Qiang <[email protected]> writes: > fw_cfg_reboot() gets option parameter "reboot-timeout" with > qemu_opt_get(), then converts it to an integer by hand. It neglects to > check that conversion for errors, and fails to reject negative values. > Positive values above the limit get reported and replaced by the limit. > This patch checks for conversion errors properly, and reject all valus
Spelling: all values. > outside 0...0xffff. > > Signed-off-by: Li Qiang <[email protected]> Reviewed-by: Markus Armbruster <[email protected]>
