Make write_escaped_data more robust to large inputs.

The old implementation would fail with super-long inputs. We never
gave it any, but still, it's nicer to dtrt here.

Reported by Guido Vranken. Fixes bug 19281.
This commit is contained in:
Nick Mathewson
2017-08-09 08:58:38 -04:00
parent 1280de42a4
commit 6f7d548bc4
2 changed files with 19 additions and 6 deletions
+5
View File
@@ -0,0 +1,5 @@
o Minor bugfixes (correctness, controller):
- Make the controller's write_escaped_data() function robust to extremely
long inputs. Right now, it doesn't actually receive any extremely
long inputs, so this is for defense in depth. Fixes bug 19281;
bugfix on 0.1.1.1-alpha. Reported by Guido Vranken.