diff --git a/AK/Checked.h b/AK/Checked.h index 0a92152162d..2dccd71fb44 100644 --- a/AK/Checked.h +++ b/AK/Checked.h @@ -190,6 +190,10 @@ public: return; } } + if (other == 0) { + m_overflow = true; + return; + } m_value /= other; }