Memory limit being hit by the C judge


#1

When tried to submit the following error arises:

*** buffer overflow detected ***: ./solution terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7329f)[0x7f7a2d8e929f]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f7a2d98487c]
/lib/x86_64-linux-gnu/libc.so.6(+0x10d750)[0x7f7a2d983750]
/lib/x86_64-linux-gnu/libc.so.6(__gets_chk+0x179)[0x7f7a2d9836a9]
./solution[0x40084f]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f7a2d897f45]
./solution[0x4008ec]
======= Memory map: ========
00400000-00402000 r-
TRUNCATED
/ld-2.19.so
7f7a2de62000-7f7a2de63000 rw-p 00023000 ca:01 540109                     /lib/x86_64-linux-gnu/ld-2.19.so
7f7a2de63000-7f7a2de64000 rw-p 00000000 00:00 0 
7ffd14e7d000-7ffd14eb2000 rw-p 00000000 00:00 0                          [stack]
7ffd14f15000-7ffd14f17000 r--p 00000000 00:00 0                          [vvar]
7ffd14f17000-7ffd14f19000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted

This points to an error while reading (__gets_chk) not in the actual execution for the code