mirror of
https://github.com/upx/upx
synced 2025-10-26 23:36:41 +08:00
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) {
|
||||
if (b == nullptr || blen <= 0 || what == nullptr || wlen <= 0)
|
||||
return -1;
|
||||
// Fast exit if the wanted string is longer than the buffer.
|
||||
if (wlen > blen)
|
||||
return -1;
|
||||
|
||||
int i;
|
||||
const unsigned char *base = (const unsigned char *) b;
|
||||
|
||||
Reference in New Issue
Block a user