Notes
This function is in beta test. Please help improve it in the issues
here.
100 int 0 append L619asTm -36876 1 append fwnAoN4Ig 44998 ================================================================= ==403==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000039 at pc 0x0000004adafc bp 0x7fffa7a78060 sp 0x7fffa7a77810 WRITE of size 10 at 0x602000000039 thread T0 #0 0x4adafb (/out/package/main+0x4adafb) #1 0x51588a (/out/package/main+0x51588a) #2 0x515327 (/out/package/main+0x515327) #3 0x7fd0d1e24b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #4 0x41cac9 (/out/package/main+0x41cac9) 0x602000000039 is located 0 bytes to the right of 9-byte region [0x602000000030,0x602000000039) allocated by thread T0 here: #0 0x4dc980 (/out/package/main+0x4dc980) #1 0x515834 (/out/package/main+0x515834) #2 0x515327 (/out/package/main+0x515327) #3 0x7fd0d1e24b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) SUMMARY: AddressSanitizer: heap-buffer-overflow (/out/package/main+0x4adafb) Shadow bytes around the buggy address: 0x0c047fff7fb0: 00 00
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
JOJ Answer
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 false 18 19 20 21 22 23 false 24 25 L619asTm=-36876 fwnAoN4Ig=44998 YJQFrK0fwNHXZRq=-11440 FLAiuYpE=65359 daYCu5c7DW2b=-11006 MVudPk0Af8G6=11531 pYaxK=43758 uSMGF=-34549 TJeQDRb20=34186 vMxC9w4hy=36845 Uw1jOTPqNRd=-49806 Qg9m7PU=41544 NVTK7tHMUker0R1=-7523 FGloLg=64519 s1LAxDE=-33213 BfZ6d7O=42186 H59j40=-63184 IQA9fnzk=-52162 01gT4WDyc2X=-31631 D1MzHv=18871 9QlmKBbknqzepW=-10402 35RruwcQCVMxLsN=25160 FY5fnxd=207 26 27 28 29 L619asTm=-36876 fwnAoN4Ig=44998 YJQFrK0fwNHXZRq=-11440 FLAiuYpE=65359 daYCu5c7DW2b=-11006 MVudPk0Af8G6=11531 pYaxK=43758 uSMGF=-34549 TJeQDRb20=34186 vMxC9w4hy=36845 Uw1jOTPqNRd=-49806 Qg9m7PU=41544 NVTK7tHMUker0R1=-7523 FGloLg=64519 s1LAxDE=-33213 BfZ6d7O=42186 H59j40=-63184 IQA9fnzk=-52162 01gT4WDyc2X=-31631 D1MzHv=18871 9QlmKBbknqzepW=-10402 35RruwcQCVMxLsN=25160 FY5fnxd=207 5ZfKXW3AGFImB=211 D8qdWc4ZGYA=54435 F6CW0KkA5Rc=-61567 FLAiuYpE=65359 FGloLg=64519 D8qdWc4ZGYA=54435 fwnAoN4Ig=44998 pYaxK=43758 BfZ6d7O=42186 Qg9m7PU=41544 vMxC9w4hy=368