Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 55618
   1: WRITE echo 1
   2: CTRL+D
   3: WRITELN 23
   4: WRITELN 
   5: CTRL+D

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 $ 123
mumsh $ mumsh $ /in/read.h:156:32: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/read.h:156:32 in 
/in/read.h:156:9: runtime error: addition of unsigned offset to 0x619000000580 overflowed to 0x61900000057f
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/read.h:156:9 in 
=================================================================
==55619==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61900000057f at pc 0x000000519650 bp 0x7fffeebb59b0 sp 0x7fffeebb59a8
READ of size 1 at 0x61900000057f thread T0
    #0 0x51964f  (/out/package/mumsh_memory_check+0x51964f)
    #1 0x5200d0  (/out/package/mumsh_memory_check+0x5200d0)
    #2 0x7fc4bc143b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #3 0x41d489  (/out/package/mumsh_memory_check+0x41d489)

0x61900000057f is located 1 bytes to the left of 1024-byte region [0x619000000580,0x619000000980)
allocated by thread T0 here:

JOJ Answer

mumsh $ 123
mumsh $ mumsh $ exit