2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Handle empty string and treat it as safe.

This commit is contained in:
Todd C. Miller
2018-05-20 07:36:00 -06:00
parent 1bc8e9abfd
commit 03aa84ed03

View File

@@ -68,6 +68,8 @@ safe_string(const char *str)
/* Initial char must be <= 127 and not LF, CR, SPACE, ':', '<' */
switch (ch) {
case '\0':
debug_return_bool(true);
case '\n':
case '\r':
case ' ':