mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-19 21:13:45 +00:00
allow multiple -m
This commit is contained in:
@ -915,9 +915,16 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
|
|
||||||
u8 suffix = 'M';
|
u8 suffix = 'M';
|
||||||
|
|
||||||
if (mem_limit_given) { FATAL("Multiple -m options not supported"); }
|
if (mem_limit_given) {
|
||||||
|
|
||||||
|
WARNF("Overriding previous -m option.");
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
mem_limit_given = 1;
|
mem_limit_given = 1;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (!optarg) { FATAL("Wrong usage of -m"); }
|
if (!optarg) { FATAL("Wrong usage of -m"); }
|
||||||
|
|
||||||
if (!strcmp(optarg, "none")) {
|
if (!strcmp(optarg, "none")) {
|
||||||
|
Reference in New Issue
Block a user