View Single Post
AI_
Member
Join Date: Oct 2014
Location: Canada
Old 07-27-2018 , 12:32   Re: [TF2] Projectiles Fix
Reply With Quote #14

This plugin causes a segfault due to line 265 when an entity has fewer than 14 characters:

Code:
if (HookProjectiles && GetTrieValue(ProjectilesTrie, classname[14], projectile))
The fix was to add a string length test:
Code:
if (HookProjectiles && strlen(classname) > 14 && GetTrieValue(ProjectilesTrie, classname[14], projectile))
Thanks Kinsi and asherkin for helping with the debug.
__________________

Last edited by AI_; 07-27-2018 at 12:40.
AI_ is offline