https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129286

Drea Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Your conditions are swapped so you get undefined behavior when i is MAX_ITEMS
with an out of bounds access.

Fix is swap the order of the Conditionals across the &&.

Reply via email to