CSClubIIITDM-org / bughunt-2024

Repo for BugHunt vashisht2024
0 stars 35 forks source link

[Code Commandos] c/c++ 1 #151

Open Sahilll94 opened 7 months ago

Sahilll94 commented 7 months ago

b'/\xb7\xc4\xb4!\n\x90n\xe4\x97\x84\xbb\xf3\x9d\xa8\r\x9b\xa0 \xae\x10j\xd1\x88\xf4\x1c7K\x13\xb40\xcbz\xa8\xddQ\xc9\x13G\x13\xac-\x80\x0f\x9400D!+\x9a\xad\xcdn\xb2\xf7\xfbG\n\xa3\x0c\xd6\xfef\x90\xe6A*\x95\xba\x866\x04;\xa9\x08\xfc\xba\xe7\xd4\xc7\x17bY\x12\x04\x9d\xd7\\xfe(!G\x94\x0c\xef&\x80\t\xb0Z\x89[\xc77\xa8(X\xbb\xb4\xbdg\xd2(\x81\xda\xbc{KW6\xb3\xc7\x17\xbf\xb8\xb6\x06'

b'gAAAAABl9ShO3BtL6jY3lI8AqKbRnoWBDfnfqkRszpggbSrL0U3Barx7YmEtII7IXS1GFK3fJwGdC3u7aXDv-Ob3GYbgMrs-MOBwARRSEE2qNiSO5gHEnHj9i6out-b1le2zQBw5QLG6CVxRXDYPpVQ_DVWTERehMqW_INFVx-W4-gc66g0Vx-OJtWoVBK9u90nedA0kpf9h9e5xd_xCESwvp5ABtHs3vFgHH3y3zhEl7Rezo-abIPkj9LCofeO0A7-m7Yu2dfrBQxlrv7zcl_jWE2kmWv8s2Rmtjvpg1htoCh1e-h5ZFF0uWYwbuAm2ezJAcTnL_E2EgLOUffdkIidgpcpTO0KnJ-bAjqA8ajkdTVr0OxQ7B4SbHG3is7rgD10nN9vWw-6TPXEhsK6TfMHpg7Xkgz8ohNcxPu50b9xplxN79qHpPbPMNJV8nwydsdz_XqN57hHbWId7biIimOSCM4-0YHnJLjjB9grhLUP9VCzMAfSMS6j1ctueNbk37S5pxVI6BjFE8QbI_ufcGAVdoy-ScowRfQ=='

bughunt-bot[bot] commented 7 months ago

Team Name: Code Commandos File Name: c/c++ 1 Line Number: [17] Bug Description: In the first loop, the loop counter i should start from 0 to n-1 because the array a is zero indexed. Starting from 1 may result in accessing out-of-bounds memory in the array a.

Solution: Modify the loop to start from 0 to n-1.

bughunt-bot[bot] commented 7 months ago

Bug Hunt Evaluation: Answer: ((33,),) Correctness: 0/1 Points: 0/100