peda icon indicating copy to clipboard operation
peda copied to clipboard

Extraneous characters passed in argument to debugged executable

Open ghost opened this issue 7 years ago • 1 comments

Running my executable with

start `echo -ne 'AAAAAAAAAAABBBBBBBBBB\xf7\xd7\xff\xffCCCCCC'`

results in extraneous characters, in this case the \303 (0xc3) in the argument string: EAX: 0xffffd7f6 ('A' <repeats 11 times>, "BBBBBBBBBB\303\267\303\227\303\277\303\277CCCCCC") This problem isn't present in bare bones gdb so I think it's a PEDA issue.

ghost avatar Mar 07 '18 01:03 ghost

Yes, it's a bug with start command. Workaround: use run instead :)

longld avatar Mar 13 '18 01:03 longld