Remove dependency on libjansson

Orlando Arias orlandoarias@gmail.com
Wed Apr 3 15:37:32 GMT 2024


Greetings,

On 4/3/24 10:58 AM, Michael Matz wrote:
> Indeed.  But note that you're saying something else than what you wanted
> to say :)  For ld the input here is "blob of bytes".  That it's actually
> JSON (or claims to be!) is a matter for the processor of these .note
> sections.  _Those_ need to check the contents of them for being proper
> JSON themself.  They cannot rely on ld having produced "correct" .note
> sections anyway.  They could have been produced by bad tools, or
> retroactively be mangled.
> 
> So, as such checking in the consumer tools for the .notes cannot be
> avoided the early checking at producer time is a bit wasteful, and from a
> security perspective achieves exactly nothing.

Apologies for the confusion. Yes, I wholly agree, checking must be done 
at every stage of the chain. That includes both generation and every 
stage of the way thereafter. The entire chain must be sanitized. As you 
mention, tampering along the way is a possibility. Also, it is very 
possible that different parsers treat the same construct in different 
ways. This goes back to the entire weird machine situation.

Cheers,
Orlando.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 756 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20240403/eb475fcb/attachment-0001.sig>


More information about the Binutils mailing list