Notes
This function is in beta test. Please help improve it in the issues
here.
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 $ ================================================================= ==79620==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x7ffc0f7bcfe1 in thread T0 #0 0x4dcee0 (/out/package/mumsh_memory_check+0x4dcee0) #1 0x524fde (/out/package/mumsh_memory_check+0x524fde) #2 0x524af7 (/out/package/mumsh_memory_check+0x524af7) #3 0x524e2a (/out/package/mumsh_memory_check+0x524e2a) #4 0x7fc492f61b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #5 0x41d1f9 (/out/package/mumsh_memory_check+0x41d1f9) Address 0x7ffc0f7bcfe1 is located in stack of thread T0 at offset 3169 in frame #0 0x523e9f (/out/package/mumsh_memory_check+0x523e9f) This frame has 1 object(s): [32, 64) 'bgjob' <== Memory access at offset 3169 overflows this variable HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: bad-free (/out/package/mumsh_memory
JOJ Answer
mumsh $ mumsh $ / mumsh $ mumsh $ /out/package mumsh $ exit