On Sun Sep 7 17:40:16 2025 +0000, Huw Davies wrote:
This seems a bit fragile; if something saved in the existing blob format happens to match here, we'll do the wrong thing.
Quite a few things would have to go right (or wrong, depending on how you think of it :D) here for something to be saved in the existing blob format and be identified as the new format: - It'd need to have a valid VT. (there aren't too many of those) - It'd need an exact match to our magic value here. - It'd need to have a valid element count. - It'd need to be of the appropriate size.
It seems pretty unlikely to me that _all_ of those conditions could be matched accidentally. Alternatively, we could try to detect data in the old format here using this check and then update it to use the new format?