Forbid UINT32_MAX as a protocol version

The C code and the rust code had different separate integer overflow
bugs here.  That suggests that we're better off just forbidding this
pathological case.

Also, add tests for expected behavior on receiving a bad protocol
list in a consensus.

Fixes another part of 25249.
This commit is contained in:
Nick Mathewson
2018-02-15 09:05:55 -05:00
parent 8b405c609e
commit 1fe0bae508
3 changed files with 27 additions and 5 deletions
+3
View File
@@ -0,0 +1,3 @@
o Minor bugfixes (spec conformance):
- Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
bugfix on 0.2.9.4-alpha.