Commit ca26e85f authored by Seong-Joong Kim's avatar Seong-Joong Kim

uru4000: Fix integer overflow in imaging_run_state()

‘img->key_number’ variable is originally from the device through bulk
endpoint of USB. The variable is immediately assigned to ‘buf[0]’ for
sending to control endpoint of the device. Here, integer overflow may
occur when the ‘img->key_number’ attempts to assign a value that is
outside of type range of ‘char’ to the ‘buf[0]’
parent 07143803
Pipeline #21007 passed with stages
in 3 minutes and 10 seconds