diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-10-15 10:00:21 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-10-16 09:04:08 +0200 |
commit | 1e0d7e417acd745e5ddd9fb3b8dbb8691945f62f (patch) | |
tree | 11b9d55152eeb246c9f26bdf911581a8d11d1064 /commands/miitool.c | |
parent | e1818e02408d9e412a2092c2419f323d6b8c7413 (diff) | |
download | barebox-1e0d7e417acd745e5ddd9fb3b8dbb8691945f62f.tar.gz barebox-1e0d7e417acd745e5ddd9fb3b8dbb8691945f62f.tar.xz |
libfile: Error out if out of memory in read_file_2()
All other error cases in read_file_2() are handled gracefully, so
there shouldn't be any reason not do so for the case of trying to
allocate too much memory. This error path can be easily triggered
with:
barebox_update file-bigger-than-availible-ram.img
Currently this would result in a crash which is not really desirable
from user experience.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/miitool.c')
0 files changed, 0 insertions, 0 deletions