On Wednesday, 13 August 2025 at 15:56, Gergely Tóth <
gergel...@lightware.com> wrote:
> Hi Everyone,
Welcome!
> Except it fails with:
> FuPluginUf2 unknown tag 0xfaefbe
> FuPluginUf2 unknown tag 0xbecefa
Are these tags defined by you? What do they do? I think fwupd ignores these properly, but if you give us a name of each we can print something better in the logs.
> invalid extension tag size
This is saying "the current tag is too small" -- not helped by not printing *what* tag it's trying to parse. The spec says:
>The first byte of tag contains its total size in bytes (including the size byte and type designation). The next three bytes designate the type of tag (if you want to define custom tags, pick them at random).
So I'm checking that the size is at least 4 bytes in size.
The spec also says:
> The last tag has size of 0 and type of 0.
I suspect this is what's going wrong; I'm confused how we can read the 3-byte tag if the size (which includes the tag-id) is zero -- i.e. seems like a spec bug to me.
I've attached a patch; that seems to fix parsing for me -- but I'd really like to work out what 0xfaefbe and 0xbecefa are before doing a PR.
Richard