Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
powerpc/rtas_flash: fix a potential buffer overflow
Since snprintf() returns the possible output size instead of the actual output size, the available flash_msg length returned by get_validate_flash_msg may exceed the given buffer limit when simple_read_from_buffer calls copy_to_user Signed-off-by: Yi Zhuang <zhuangyi1@huawei.com>
- Loading branch information