-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This adds an explicit length to all control messages. It's encoded as a varint, which is annoying. moxygen always writes it as a 2 byte varint, and fails writing control messages longer than 2^14. This removes all the calls to cursor.totalLength() from the control stream, which was a bit of a DoS vector. There's still one on the object-stream path, which we can work on removing as we iterate. This diff started as a backout of D57702981. Reviewed By: yuandagits Differential Revision: D63587022 fbshipit-source-id: df291d4d289efc69a645547605e81ec5860f6c43
- Loading branch information
1 parent
583ec92
commit 3395237
Showing
5 changed files
with
379 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.