Merge pull request #8768 from sersorrel/push-rzkyyukwytos

Remove unnecessary check that Padmé overhead is at most 12%
This commit is contained in:
TW 2025-04-19 11:25:51 +02:00 committed by GitHub
commit a34f4a1dae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -613,11 +613,7 @@ class ObfuscateSize(CompressorBase):
padded_size = (compr_size + bitMask) & ~bitMask # Apply rounding
# Ensure max 12% overhead
max_allowed = int(compr_size * 1.12)
final_size = min(padded_size, max_allowed)
return final_size - compr_size # Return only the additional padding size
return padded_size - compr_size # Return only the additional padding size
# Maps valid compressor names to their class
COMPRESSOR_TABLE = {