LibGfx: Make TextTagData verify input is 7-bit ASCII

TextTagData::from_bytes() errors out if that isn't the case, but
let's make sure other potential future callers get it right too.
This commit is contained in:
Nico Weber 2023-02-17 21:42:18 -05:00 committed by Andreas Kling
parent df5dbc180f
commit eaa0e3484b

View file

@ -762,6 +762,8 @@ public:
: TagData(offset, size, Type)
, m_text(move(text))
{
for (u8 byte : text.bytes())
VERIFY(byte < 128);
}
// Guaranteed to be 7-bit ASCII.