Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

 pwd: /out/package
ppid: 74954
   1: WRITELN echo '1                "2                 " 3'
   2: WRITELN exit

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.

Please double check your code to solve this problem and try again.

Your Answer

mumsh $ p1.c:164:5: runtime error: index 20 out of bounds for type 'char [20]'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior p1.c:164:5 in 
=================================================================
==74956==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffe5aa1b034 at pc 0x000000516f51 bp 0x7ffe5aa1aff0 sp 0x7ffe5aa1afe8
WRITE of size 1 at 0x7ffe5aa1b034 thread T0
    #0 0x516f50  (/out/package/mumsh_memory_check+0x516f50)
    #1 0x51a21a  (/out/package/mumsh_memory_check+0x51a21a)
    #2 0x7f3bf1152b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #3 0x41cd89  (/out/package/mumsh_memory_check+0x41cd89)

Address 0x7ffe5aa1b034 is located in stack of thread T0 at offset 52 in frame
    #0 0x5165df  (/out/package/mumsh_memory_check+0x5165df)

  This frame has 1 object(s):
    [32, 52) 'ans' <== Memory access at offset 52 overflows this variable
HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext
      (longjmp and C++ excepti

JOJ Answer

mumsh $ 1                "2                 " 3
mumsh $ exit