Skip to content
Snippets Groups Projects
Commit 1c395c74 authored by Sean McBride's avatar Sean McBride
Browse files

Fixed out of bounds array access with empty arrays

It was incorrect to assume there was always a 0th element.  Instead, check that the array is not empty first.

Added new test cases to test empty arrays.

Thanks to David Gobbi for noticing this bug during review of something else.
parent aea8f0a2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment