mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Adjust ipadiff to the latest App Store changes and cleanup
This commit is contained in:
@@ -78,6 +78,9 @@ static bool cleanArch(std::vector<uint8_t> &archData, bool &isEncrypted) {
|
||||
if (encryptionInfoCommand->cryptid != 0) {
|
||||
isEncrypted = true;
|
||||
}
|
||||
// The App Store has begun to change offsets in LC_ENCRYPTION_INFO
|
||||
memset(archData.data() + offset + offsetof(encryption_info_command_64, cryptoff), 0, sizeof(uint32_t));
|
||||
memset(archData.data() + offset + offsetof(encryption_info_command_64, cryptsize), 0, sizeof(uint32_t));
|
||||
}
|
||||
|
||||
offset += commandSize;
|
||||
|
||||
Reference in New Issue
Block a user