On 10/29/21 3:53 PM, Lennart Poettering wrote:
Does there need to be any parsing at all? WireGuard avoids the problem
by only using fixed-size fields, so one only needs to check that the
field is of the correct length. Qubes OS uses the same solution in
at least its GUI protocol.
Sincerely,
Demi Marie Obenour (she/her/hers)
Different vendors have different requirements, so one of the goals was to be very specific
about the elf format so that it's easy on the tooling (specific note name, id, owner,
alignment, padding, readonly, section), but very open ended on the payload so that each
vendor can add as many or as few key/value pairs as they need/cam afford.
Furthermore, if you start asking questions like "what's the longest version a
package can have", the answer can be extremely surprising - some time ago someone
checked the pathological corner cases in Debian and it was like a hundred characters or so
(!!)