mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:07:46 +00:00
LibGfx: Make TextDescriptionTagData verify input is 7-bit ASCII
TextDescriptionTagData::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:
parent
e76f1caf79
commit
b2cf773d85
1 changed files with 2 additions and 0 deletions
|
@ -732,6 +732,8 @@ public:
|
|||
, m_unicode_description(move(unicode_description))
|
||||
, m_macintosh_description(move(macintosh_description))
|
||||
{
|
||||
for (u8 byte : ascii_description.bytes())
|
||||
VERIFY(byte < 128);
|
||||
}
|
||||
|
||||
// Guaranteed to be 7-bit ASCII.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue