-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "Checker MUST handle broken utf-8 gracefuly" Tenet #6
Comments
Should we generalize it to "MUST gracefully handle all valid output of the service" or something similar? If my service only accepts uftf8-input the checker should report mumble if it receives gibberish, and this is not utf8-specific but should also be applied to corrupted protobuf messages or whatever. |
True, it should handle all input, however I would explicitly note broken utf-8. For example, broken protobuf would probably (rightfully) result in a mumble service (broken response), while broken unicode can be the result of a fully-functioning service, and should not mumble. /edit: Checkerfuzzer ETA When |
It depends, if the checker parses protobuf supplied by users then it can rightfully be malformed, under the assumption that the service does not enforce protobuf validity. I agree that uft8 is the most common candidate, what about generalizing it and using utf8 as an example? |
How about |
This has been addressed, I think? |
Where? It's still missing from the tenets I think |
What do you think of If a service is expected to return a valid string the checker should say mumble after all |
Our checkers must not crash if teams insert random broken utf-8 characters into other team's publicly readable databases.
This would lead to an unfair and unpatchable disadvantage to these teams.
We should add this to our Tenets and probably add checks for it.
For service authors, they should either handle bytes encoded, or handle each decode and decide if they should continue on errors, there.
The text was updated successfully, but these errors were encountered: