mirror of
https://github.com/palera1n/palera1n.git
synced 2026-12-06 08:14:49 +01:00
fix uaf
This commit is contained in:
1 parent
2c544ad8e5
commit
6ba000ca8e
1 file changed
+5
-3
+5
-3
@@ -104,14 +104,16 @@ void* connected_recovery_mode(struct irecv_device_info* info) {
|
|||||||
step(4, 2, "Hold Volume Down + Side button", NULL, 0);
|
step(4, 2, "Hold Volume Down + Side button", NULL, 0);
|
||||||
else
|
else
|
||||||
step(4, 2, "Hold Home + Power Button", NULL, 0);
|
step(4, 2, "Hold Home + Power Button", NULL, 0);
|
||||||
|
ecid_wait_for_dfu = info->ecid;
|
||||||
|
ecid = info->ecid;
|
||||||
ret = exitrecv_cmd(info->ecid);
|
ret = exitrecv_cmd(info->ecid);
|
||||||
|
info = NULL;
|
||||||
if (ret) {
|
if (ret) {
|
||||||
LOG(LOG_ERROR, "Cannot exit recovery mode");
|
LOG(LOG_ERROR, "Cannot exit recovery mode");
|
||||||
|
ecid_wait_for_dfu = 0;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
printf("\r\e[K");
|
printf("\r\e[K");
|
||||||
ecid_wait_for_dfu = info->ecid;
|
|
||||||
ecid = info->ecid;
|
|
||||||
bool nohome = NOHOME;
|
bool nohome = NOHOME;
|
||||||
if (nohome)
|
if (nohome)
|
||||||
step(2, 0, "Hold Volume Down + Side button", NULL, 0);
|
step(2, 0, "Hold Volume Down + Side button", NULL, 0);
|
||||||
@@ -122,7 +124,7 @@ void* connected_recovery_mode(struct irecv_device_info* info) {
|
|||||||
else
|
else
|
||||||
step(10, 0, "Hold Home button", conditional, ecid);
|
step(10, 0, "Hold Home button", conditional, ecid);
|
||||||
ecid_wait_for_dfu = 0;
|
ecid_wait_for_dfu = 0;
|
||||||
if (ecid_wait_for_dfu != info->ecid) {
|
if (ecid_wait_for_dfu != ecid) {
|
||||||
} else {
|
} else {
|
||||||
LOG(LOG_WARNING, "Whoops, device did not enter DFU mode");
|
LOG(LOG_WARNING, "Whoops, device did not enter DFU mode");
|
||||||
LOG(LOG_INFO, "Waiting for device to reconnect...");
|
LOG(LOG_INFO, "Waiting for device to reconnect...");
|
||||||
|
|||||||
Reference in new issue
Block a user