projects
/
project
/
firmware-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46f373b
)
tplink-safeloader: fix segfault when partition name is NULL
master
author
Stijn Tintel
<stijn@linux-ipv6.be>
Fri, 6 Feb 2026 13:48:21 +0000
(15:48 +0200)
committer
Stijn Tintel
<stijn@linux-ipv6.be>
Fri, 6 Feb 2026 13:48:54 +0000
(15:48 +0200)
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
src/tplink-safeloader.c
patch
|
blob
|
history
diff --git
a/src/tplink-safeloader.c
b/src/tplink-safeloader.c
index e62e66528241a5873c0ee3995ebde2aa084fa987..13f535328e715c40279fd074304f23a2f6ebdbb2 100644
(file)
--- a/
src/tplink-safeloader.c
+++ b/
src/tplink-safeloader.c
@@
-4332,7
+4332,7
@@
static struct flash_partition_entry *find_partition(
const char *name, const char *error_msg)
{
for (size_t i = 0; i < max_entries; i++, entries++) {
- if (strcmp(entries->name, name) == 0)
+ if (
entries->name &&
strcmp(entries->name, name) == 0)
return entries;
}