commit | af0b4d5a19e3d49059afe91307fce980291f43f9 | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@hovoldconsulting.com> | Fri Aug 28 11:58:24 2015 +0200 |
committer | Johan Hovold <johan@hovoldconsulting.com> | Tue Sep 01 14:42:02 2015 +0200 |
tree | 95ea957c84872bbe0fa4bd5cd271be737e083907 | |
parent | 977e209ab41073def3cf0e1034c429a832ba54df [diff] |
greybus: firmware: fix potential stack corruption Use snprintf when generating the firmware name to avoid stack corruption if the fixed-size buffer overflows. Note that the current buffer size appears to expect 16-bit ids while the they are actually 32-bit, something which could trigger the corruption. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>