fixed -A in afl-showmap
MODIFY
src/afl-showmap.c
src/afl-showmap.c
@@ -80,7 +80,7 @@ u8 *out_file, /* Trace output file */
*stdin_file, /* stdin file */
*in_dir, /* input folder */
*doc_path, /* Path to docs */
- *at_file; /* Substitution string for @@ */
+ *at_file = NULL; /* Substitution string for @@ */
static u8* in_data; /* Input data */
@@ -901,11 +901,13 @@ int main(int argc, char** argv, char** envp) {
if (in_dir) {
if (at_file) PFATAL("Options -A and -i are mutually exclusive");
- at_file = "@@";
+ detect_file_args(argv + optind, "");
- }
+ } else {
- detect_file_args(argv + optind, "");
+ detect_file_args(argv + optind, at_file);
+
+ }
for (i = optind; i < argc; i++)
if (strcmp(argv[i], "@@") == 0) arg_offset = i;

MODIFY
unicorn_mode/samples/c/harness.c
unicorn_mode/samples/c/harness.c
@@ -203,7 +203,7 @@ int main(int argc, char **argv, char **envp) {
// Setup the Stack
mem_map_checked(uc, STACK_ADDRESS - STACK_SIZE, STACK_SIZE, UC_PROT_READ | UC_PROT_WRITE);
uint64_t stack_val = STACK_ADDRESS;
- printf("%lu", stack_val);
+ //printf("Stack at %lu\n", stack_val);
uc_reg_write(uc, UC_X86_REG_RSP, &stack_val);
// reserve some space for our input data

fixed -A in afl-showmap