Revert useless "fast exit" check from b2c00aa637.
This commit is contained in:
@@ -241,9 +241,6 @@ int __acc_cdecl_qsort le64_compare_signed(const void *e1, const void *e2) {
|
|||||||
int find(const void *b, int blen, const void *what, int wlen) {
|
int find(const void *b, int blen, const void *what, int wlen) {
|
||||||
if (b == nullptr || blen <= 0 || what == nullptr || wlen <= 0)
|
if (b == nullptr || blen <= 0 || what == nullptr || wlen <= 0)
|
||||||
return -1;
|
return -1;
|
||||||
// Fast exit if the wanted string is longer than the buffer.
|
|
||||||
if (wlen > blen)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
const unsigned char *base = (const unsigned char *) b;
|
const unsigned char *base = (const unsigned char *) b;
|
||||||
|
|||||||
Reference in New Issue
Block a user