mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 18:49:48 +02:00
fix more memory safety issues
This commit is contained in:
1 parent
851d1d1df8
commit
ab5ce9fd7e
2 files changed
+7
-7
No files matched your search
@@ -44,9 +44,9 @@ void exec_checkra1n() {
|
|||||||
unlink(checkra1n_path);
|
unlink(checkra1n_path);
|
||||||
}
|
}
|
||||||
char args[0x10] = "-pE";
|
char args[0x10] = "-pE";
|
||||||
if (demote) strncat(args, "d", 0x10);
|
if (demote) strncat(args, "d", 0xf);
|
||||||
if (verbose >= 2) strncat(args, "v", 0x10);
|
if (verbose >= 2) strncat(args, "v", 0xf);
|
||||||
if (pongo_path != NULL) strncat(args, "k", 0x10); // keep this at last
|
if (pongo_path != NULL) strncat(args, "k", 0xf); // keep this at last
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
char* checkra1n_argv[] = {
|
char* checkra1n_argv[] = {
|
||||||
checkra1n_path,
|
checkra1n_path,
|
||||||
|
|||||||
+4
-4
@@ -326,11 +326,11 @@ static void write_stdout(char *buf, uint32_t len)
|
|||||||
|
|
||||||
int issue_pongo_command(usb_device_handle_t handle, char *command)
|
int issue_pongo_command(usb_device_handle_t handle, char *command)
|
||||||
{
|
{
|
||||||
uint32_t outpos = 0;
|
uint32_t outpos = 0;
|
||||||
uint32_t outlen = 0;
|
uint32_t outlen = 0;
|
||||||
uint8_t in_progress = 1;
|
|
||||||
if (command == NULL) goto fetch_output;
|
|
||||||
int ret = USB_RET_SUCCESS;
|
int ret = USB_RET_SUCCESS;
|
||||||
|
uint8_t in_progress = 1;
|
||||||
|
if (command == NULL) goto fetch_output;
|
||||||
size_t len = strlen(command);
|
size_t len = strlen(command);
|
||||||
char command_buf[512];
|
char command_buf[512];
|
||||||
char stdout_buf[0x2000];
|
char stdout_buf[0x2000];
|
||||||
|
|||||||
Reference in new issue
Block a user