未验证 提交 62f6cb24 编写于 作者: M Mark VanderVoord 提交者: GitHub

Merge pull request #312 from shreyasbharath/master_fix_integer_underflow

Fix unsigned integer underflow in UnityAssertEqualIntArray (Thanks @shreyasbharath )
......@@ -620,7 +620,7 @@ void UnityAssertEqualIntArray(UNITY_INTERNAL_PTR expected,
if (UnityIsOneArrayNull(expected, actual, lineNumber, msg))
UNITY_FAIL_AND_BAIL;
while (elements--)
while ((elements > 0) && elements--)
{
UNITY_INT expect_val;
UNITY_INT actual_val;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册