4 ms·
The trickiest part of decoding protobufs blind is how embedded messages and strings have the same tag type, but that's pretty easy to handle. You can write a s
by Scaevolus 3y ago
The trickiest part of decoding protobufs blind is how embedded messages and strings have the same tag type, but that's pretty easy to handle.
You can write a simple protobuf decoder in a couple hundred lines of code if you don't want to pull in the full protoc dependency: https://github.com/kubernetes/test-infra/blob/master/gubernator/pb_glance.py https://github.com/kubernetes/test-infra/blob/master/guberna... https://github.com/kubernetes/test-infra/blob/master/gubernator/testgrid.py https://github.com/kubernetes/test-infra/blob/master/guberna...
- krackers 3y ago>but that's pretty easy to handle. How do you solve it? Is it just heuristically checking where if the varlength byte sequence itself contains tags, it's likely to be a message?