projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
165ad41
)
efivars: add missing OOM check
author
Lennart Poettering
<lennart@poettering.net>
Fri, 12 Oct 2018 16:50:46 +0000
(18:50 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 13 Oct 2018 10:37:13 +0000
(12:37 +0200)
CID #1395833
src/shared/efivars.c
patch
|
blob
|
history
diff --git
a/src/shared/efivars.c
b/src/shared/efivars.c
index
da70e68
..
7a97540
100644
(file)
--- a/
src/shared/efivars.c
+++ b/
src/shared/efivars.c
@@
-455,6
+455,9
@@
int efi_get_boot_option(
/* Sub-Type 4 – File Path */
if (dpath->sub_type == MEDIA_FILEPATH_DP && !p && path) {
p = utf16_to_utf8(dpath->path, dpath->length-4);
+ if (!p)
+ return -ENOMEM;
+
efi_tilt_backslashes(p);
continue;
}