-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bounds checks to response attributes
Summary: The function to write resp attrs has a 65k hard limit. While we could circumvent this with an alternate method, lets put in the limit a bit lower. OK packets also have a hard limit of 16mb, and as we have more junk thrown in there lets try and not flood it with resp attr stuff. The API does almost no error checking, so our solution is to truncate the warnings quietly :). dbug asserts will expose the issue to those who test thoroughly Reviewed By: fadimounir Differential Revision: D28662609 fbshipit-source-id: e14d7379601
- Loading branch information
1 parent
4c6fbb7
commit a1ad6e1
Showing
3 changed files
with
14 additions
and
2 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
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