fokkonaut / F-DDrace

F-DDrace is a server-side modification of Teeworlds, developed by fokkonaut.
Other
12 stars 16 forks source link

UBSAN: index -1 out of bounds for type class CPlayer (projectile.cpp:58) #72

Closed ChillerDragon closed 3 years ago

ChillerDragon commented 3 years ago
[2021-01-03 12:33:50][server]: switch 40 opened by default                                                                              
[2021-01-03 12:33:50][filescore]: opening
'records/DDNetPP-maps-BlmapChill_record.dtb' for reading failed                               
/home/chiller/Desktop/git/F-DDrace/src/game/server/entities/projectile.cpp:58:14:
runtime error: index -1 out of bounds for type 'class CPlayer *[128]'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior in
/home/chiller/Desktop/git/F-DDrace/src/game/server/entities/projectile.cpp:58:14
[2021-01-03 12:33:51][server]: netversion 0.7 802f1be60a05665f
fokkonaut commented 3 years ago

fixed by fd6cbefcb08e1af2b82d4c51648f82e9d25b5233