Fix a stack-protector warning: don't use a variable-length buffer
commit4d994e7a9c8936c9e33df90b7468e7327f1794e9
authorNick Mathewson <nickm@torproject.org>
Fri, 16 Feb 2018 01:52:01 +0000 (15 20:52 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 16 Feb 2018 01:52:01 +0000 (15 20:52 -0500)
tree633557494ce79c39c4cc4d663d58153d9357d4fa
parented1d630f0e3d2d733989eefe9fce5c287a7ca6c9
Fix a stack-protector warning: don't use a variable-length buffer

Instead, define a maximum size, and enforce it with an assertion.
src/or/onion.c