commit | e89e4598a137d0526d45b0bc58a229348aa970dc | [log] [tgz] |
---|---|---|
author | Gabor Kertesz <gabor.kertesz@arm.com> | Wed Apr 08 10:45:36 2020 +0100 |
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | Wed Apr 08 13:20:09 2020 +0100 |
tree | e713a163e999d60ceffff9094ab1a29f367e5602 | |
parent | 88e671c1834f53028727ba6df2323fb924f8cc76 [diff] |
string: Add new testcase for memchr. Memchr's length input parameter is unsigned and it's allowed to be huge, so any algorithm that uses that as a signed number, should fail the test. This patch adds cases when the length is actually bigger than the inspected array, but the seeked character is within the valid range.