CSClubIIITDM-org / bughunt-2024

Repo for BugHunt vashisht2024
0 stars 35 forks source link

[Code Commandos] c/c++ 14 #209

Open Sahilll94 opened 7 months ago

Sahilll94 commented 7 months ago

b'h\xe3h\xffobc\xa8K2\x811VoT\x18\n\rx\x7f\n\x8ea0\xbb5w\xd5\xca\x83\xc2F\xe9\x98\xf2\x14W\xfd\x98\n\x8er\xa9\xbe\xa7\x9a\xe3\r\x9c~0}\x05\xd3\xcd\xbe\x1e\xce\xfb\xb8(\xd8\x07\xc8J\x1b\xa2\xd1\x05l\xeb\xd0-\xc5\xafz\xde\xc8\xa4\xb0\xa0\x86\xec\x96\xf4e\xab\xca*jj`\x8c%\x9c\xe3\xf1\x91\x83OE1\xb8\x93\xc9\xe73\xda\xad\xd7\xb9=\x15\xc1x\x00v\xfby\x89W\x89j@\xf4\x7f\n\xd2'

b'gAAAAABl9S2ZQAxxgndTrukNtExh2UxhcXXib2IdstKK8pd_TfAK_IXTp9Pg4FkUh56Df1ZjXaONbSbmIGJ9rG2cIdODn68faG6NW80Zbb-pSrx6pVjs_eUcpFZ-m-BbOpojTJMYtqhMiMGa0iyuL2ASwq96iPRVyLiCriqjl0tfBeCuJ3-rL5NP1Rcs4DYgdlnzgkgE35IpEnT3XL-1GYH6-1hTzfDM2QA7ijNRCni6wRrYTCrcoNpCsqpig_Merp8Pq5_MmiI3vReUxkMkC8M6pi7a_myopMrN_j_la1P3HaM-DxrRZDLp7v8U71sqR2p2yN4BhTdAWFs-zsNOJYBK00jURqYAuk__C1h4SE8f2ofOyCYMZAYdq2Kyq2RvcT6Rh3Sb-MzTndYqwFzn9Fy_s4LpZOx4cvEQlUbNuC0tgDCkSeMOR4BOo8H3qsYDtwFMIhodmFIXd8ZZ5fYn5Zdud6I4ibvjhf0rLPChJ-RGygs0Brzfmiwnirx7tM-egfMYb_vY4wgzCXasP0oxyF0N3seh9Ffqx8JMMjgpmeHgBaVZVtVlL0XJEGph3j6cfGJU6hUv4osdITlVBvyKSEOYMshkVnPRCDmdMLjjikxsFgpzFF_wJWY='

bughunt-bot[bot] commented 7 months ago

Team Name: Code Commandos File Name: c/c++ 14 Line Number: [6] Bug Description: The bug in the code lies in the allocation of memory for the integer array a. Solution: allocate memory for a with sufficient space to store all the integers derived from the Roman numeral characters as well as the null terminator. we Fixed it by adjusting the allocation size to strlen(s) + 1

bughunt-bot[bot] commented 7 months ago

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