]> git.ipfire.org Git - thirdparty/tor.git/commit
relay_msg: Document and enforce length invariants.
authorNick Mathewson <nickm@torproject.org>
Tue, 6 May 2025 00:38:55 +0000 (20:38 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 6 May 2025 00:41:16 +0000 (20:41 -0400)
commit54938332a8733e0f00110c4fcaccaa1973c905cc
tree3342a8234a096f504c34253b7822f3ff32cac1ec
parent6faa0350f2dfb446caa59261c5f337c33501ac2b
relay_msg: Document and enforce length invariants.

This takes a slightly different approach from suggested in the MR:
we document that a relay_msg_t must _always_ have a valid length,
and note that this warning still applies for relay_msg_copy.
src/core/or/relay_msg.c
src/core/or/relay_msg_st.h