git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7d1214
)
bootstd: rauc: Fix segfault occurring during private struct access
author
Martin Schwan
<m.schwan@phytec.de>
Mon, 14 Jul 2025 13:30:09 +0000
(15:30 +0200)
committer
Tom Rini
<trini@konsulko.com>
Tue, 22 Jul 2025 19:53:17 +0000
(13:53 -0600)
Fix a potential segmentation fault, by not accessing the member of a
null pointer to a private slot's name field.
Signed-off-by: Martin Schwan <m.schwan@phytec.de>
boot/bootmeth_rauc.c
patch
|
blob
|
history
diff --git
a/boot/bootmeth_rauc.c
b/boot/bootmeth_rauc.c
index
6abbd25
..
72075c0
100644
(file)
--- a/
boot/bootmeth_rauc.c
+++ b/
boot/bootmeth_rauc.c
@@
-180,7
+180,7
@@
static int distro_rauc_read_bootflow(struct udevice *dev, struct bootflow *bflow
return log_msg_ret("buf", -ENOMEM);
priv->slots = new_slots;
priv->slots[i - 1] = s;
- priv->slots[i]
->name
= NULL;
+ priv->slots[i] = NULL;
}
bflow->bootmeth_priv = priv;