Open Sahilll94 opened 7 months ago
Team Name: Code Commandos File Name: c/c++ 6 Line Number: [7] Bug Description: The error is returning a pointer to a local variable from a function. Solution: we should allocate memory dynamically using malloc or new so that the memory remains valid even after the function returns.
Bug Hunt Evaluation: Answer: ((6,),) Correctness: 0/1 Points: 0/100
b'X\xb0B}\x18\xe3\x017\x0e\xbcA\x1b\xcc\xf2\xb4G\t\xb9\x05\xd2%K|\x92\xdaKr\x13N/\xc3]\xa2\x04v\xebV\xfb/\x1ey\xc4k\\xef\xc8y\xc6o\xdd\x94\xab\xf4\x94`w\xdc\x9e\x95\x04w\x17\x96\xfc\x86\xf6\xa74-\xact\xf83\x8aq\x15\xa7\xf9|\x9bO\xa0\xba\xb2\xe2\xc9\x9e\x99\xd0\x88a\x12\xcc\x08GH\x8e\x89\xc9j\xd4L(n\x01\x98\xdc\xb3\x1a\xe7\x1e\xb4\x9e\xaf>\xbe\xd0\x92\xa9\xf3\x17Z\xa7 \xf4\x1e'
b'gAAAAABl9SPENXtMg7xO_WRt_Txgk42eqteRXhkqpaYRZkjBDYF7At9RMc9dU1DBrwvuWvYf7xZldd60lB83qABzvQZm_GYCYMrn9WPO8B0Ev-_7a8DBK5e0Wl8L9pn5IqyFPUnyRPHnyIt8TJ9JnrOv24dzMVQvNVPeZdsYz8TFBVpAhnFRtKpwGyVCxbGnQgwWhmFYZ6jauS342A4O4GnGKsSPBQ56Jlsij5AP8DvzrcK6jCXBRbp17LPj5vPEpayW6w0mOHWhj1mZYOfl8nS8HstxyNny7FcbUoqCXUcaLrnWhcqcxTZxohdaml1U1O-gSPWr3Oytr3U_tLrSBlQe1YZiDa3d5aOFVHE3h-ToWfsETitSFiSmv5xqeCS6uT_a3LY7gx1DomgvYe1QuuVu0Ji0pdTGm-S_PPn6DgcLQ7X80tA8D3lr-p4BgzJ0J5hU7gOM2f079LLHSVHB1aTYcVv18-rxLHm-OZApxoI21or0Q5RTWRI='