cpukit/shell: Fix NULL Pointer Dereference in Shell Memory Dump Commands

This commit is contained in:
lei huang
2025-06-13 06:17:13 +00:00
committed by Kinsey Moore
parent e79a30378b
commit e1ce81a868

View File

@@ -131,6 +131,10 @@ int args_parse(int argc,
}
}
}
} else {
// Handle missing address argument
printf("Usage: %s [address [length [size]]]\n", argv[0]);
return -1;
}
return 0;
}