Loading changes/bug21507 0 → 100644 +5 −0 Original line number Diff line number Diff line o Minor bugfixes (voting consistency): - Reject version numbers with non-numeric prefixes (such as +, -, and whitespace). Disallowing whitespace prevents differential version parsing between POSIX-based and Windows platforms. Fixes bug 21507 and part of 21508; bugfix on 0.0.8pre1. src/or/routerparse.c +2 −0 Original line number Diff line number Diff line Loading @@ -4894,6 +4894,8 @@ tor_version_parse(const char *s, tor_version_t *out) #define NUMBER(m) \ do { \ if (!cp || *cp < '0' || *cp > '9') \ return -1; \ out->m = (int)tor_parse_uint64(cp, 10, 0, INT32_MAX, &ok, &eos); \ if (!ok) \ return -1; \ Loading Loading
changes/bug21507 0 → 100644 +5 −0 Original line number Diff line number Diff line o Minor bugfixes (voting consistency): - Reject version numbers with non-numeric prefixes (such as +, -, and whitespace). Disallowing whitespace prevents differential version parsing between POSIX-based and Windows platforms. Fixes bug 21507 and part of 21508; bugfix on 0.0.8pre1.
src/or/routerparse.c +2 −0 Original line number Diff line number Diff line Loading @@ -4894,6 +4894,8 @@ tor_version_parse(const char *s, tor_version_t *out) #define NUMBER(m) \ do { \ if (!cp || *cp < '0' || *cp > '9') \ return -1; \ out->m = (int)tor_parse_uint64(cp, 10, 0, INT32_MAX, &ok, &eos); \ if (!ok) \ return -1; \ Loading