← Commit list

0d18e5cab

Denys Vlasenko
Denys Vlasenko
2018-11-25
SUCCESS Duration: 291s

Subject

ntpd: do not SEGV on "-p keyno:192.168.1.1", show --help instead

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/ntpd.c+1 -0
@@ -2539,6 +2539,7 @@ static NOINLINE void ntp_init(char **argv)
int key_id;
peer += 6;
end = strchr(peer, ':');
+ if (!end) bb_show_usage();
*end = '\0';
key_id = xatou_range(peer, 1, MAX_KEY_NUMBER);
*end = ':';