diff --git a/Userland/Libraries/LibGfx/PNGWriter.cpp b/Userland/Libraries/LibGfx/PNGWriter.cpp index f07baccef0..8bd39aff4e 100644 --- a/Userland/Libraries/LibGfx/PNGWriter.cpp +++ b/Userland/Libraries/LibGfx/PNGWriter.cpp @@ -48,6 +48,8 @@ private: PNGChunk::PNGChunk(String type) : m_type(move(type)) { + VERIFY(m_type.bytes().size() == 4); + // NOTE: These are MUST() because they should always be able to fit in m_data's inline capacity. MUST(add_as_big_endian(0)); MUST(store_type());