CSClubIIITDM-org / bughunt-2024

Repo for BugHunt vashisht2024
0 stars 35 forks source link

[Code Commandos] c/c++ 10 #157

Open Sahilll94 opened 6 months ago

Sahilll94 commented 6 months ago

b"\xf5E\x0b$\xd5u\xb5\xabD\x19\xeb\xec\xbf\xfa\xe7\xd4b\xb0\x04\xc0\xdf\xad\x80\x06\xda\x81\xdc\xea\xfdfI\x8a^1C\x94;v\x05\xab\xe0\xe1i>\xf2\xc7W\xd5\xea\x18p\xf8F\xd0~P=\xcf>}\x1b\x88=U\x02\xd1~D\xfdS\xd1\xdf\xa5z3[\\'{$xX]\xa9\xb9\xd6\xeb\xa2\xc8m\xf1\x9c\xeax\xa5\xde\x91h\x97N&\xb9\x13\xd4\x97\x95n\x91\xc4y\xd8\x81\xfaA\xfa\xdfJe\x89\xbf\x08\xddyU"

b'gAAAAABl9SkfJCEq5OWl98sY0lMTO2eEfX4WLh9hDHxjnzxwGeGqvjAr04EJyuvpeoxau1p4DwwMDSUn2GLm-Z0fhrVioC2tJjuezp171tAHDHOugFKGknOYxM5XGw5H-FlK432khQT5tfi8TpI60PL1AMQvarifdQC_1kgzLrxtaUKzqRIlJAN3wwJBOZxiKMv5Bkf0PaHD9m6TjjFw9DDo4tJIZbjAuwon4DTz7jUR6FdiMSua3l3QYBteTKaHUA0i2WuQqw_ofmPHzMyXF7w1H3yBw4IKgVQ2gJEBTMBJJbIUxnN1Tm4wByB1OHVAYFyc8ZxEaryJuZYQwueGTExJaVt879Al97-PBXi2rO19bReB9qgfjoxUbGGbSB3OBDYrt7g11X08WI3UpWJvnQz-PEG80vNlhnL3fnaOmuhaMANXxx0kSMHl1SNn2_KE-FRnJNycpYoDv7vlr9kHcmeVF1gGesXDbYz23f8MdtRDll4N0xqAJNWQtRh2Z8lfzFSsk2W-2kY-dppKkKYW6nOx2hHUQXVxCd_ncrdYQpocDOJhmqmQSgc_LVXxqx5E3-W22ou87tZEXlkWNw0pgfX0okbdwtb146qOTdyU3d_rDIZ-dag7JhfznpjUYDWp-5A_BjrdADpcGZ7T-RCdyAAGolbvCUqsDCiEIUvTZ6CzDnR2Z94dFwwo3wD0EnvQ38ehWjUqY4Kt'

bughunt-bot[bot] commented 6 months ago

Team Name: Code Commandos File Name: c/c++ 10 Line Number: [112] Bug Description: In insert function, the value of x is assigned to value of choice, which is of int type .But x is of the type bool. So the non zero value of true will be identified as true and zero will be identified as false instead of accepting the actual integer values.

Solution: Modify the assignment of x to correctly convert the int value of `choice to bool.

bughunt-bot[bot] commented 6 months ago

Bug Hunt Evaluation: Answer: ((131, 21),) Correctness: 0/2 Points: 0/100