1
0
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:
Markus F.X.J. Oberhumer
2020-12-08 07:13:11 +01:00
parent f2e562b5de
commit 4ae3a8b2b0

View File

@@ -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;