3 ms·
This could be generalized to any `string` field in any network packet.
by geraldcombs 3y ago
This could be generalized to any `string` field in any network packet.
- jeffbee 3y agoI don't see how. A user of a conforming protobuf library can assume, after a successful decode, that a string field contains valid UTF-8. That doesn't generalize to everything called "string".
- geraldcombs 3y agoI was trying to make the point that string validation isn't limited to protobuf. You need to do it for any network protocol that uses strings, which is most of them.