← Commit list

1f1988d52

Michal Kazior
Michal Kazior
2019-10-08
SUCCESS Duration: 153s

Subject

udhcpc: fix segmentation fault on empty bin opt

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/udhcp/common.c+1 -1
@@ -539,7 +539,7 @@ int FAST_FUNC udhcp_str2optset(const char *const_str, void *arg,
if (optflag->flags == OPTION_BIN) {
val = strtok(NULL, ""); /* do not split "'q w e'" */
- trim(val);
+ if (val) trim(val);
} else
val = strtok(NULL, ", \t");
if (!val)