DarkflameServer/dGame/dComponents
David Markowitz 213c3c37b0
Fix crash in BasicAttackBehavior (#862)
* Add failArmor server side

Address out of bounds reading in behavior

Address the basicAttackBehavior reading out of bounds memory and reading bits that didnt exist, which occasionally caused crashes and also caused the behavior to do undefined behavior due to the bad reads.

Tested that attacking a wall anywhere with a projectile now does not crash the game.  Tested with logs that the behavior correctly returned when there were no allocated bits or returned when other states were met.

Add back logs and add fail handle

Remove comment block

Revert "Add back logs and add fail handle"

This reverts commit db19be0906fc8bf35bf89037e2bfba39f5ef9c0c.

Split out checks

* Remove case 2

* Update SkillComponent.cpp
2022-12-15 22:10:58 -08:00
..
BaseCombatAIComponent.cpp Move Navmesh code away from dPhysics (#701) 2022-08-02 06:30:19 +01:00
BaseCombatAIComponent.h format codebase 2022-07-28 08:39:57 -05:00
BouncerComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
BouncerComponent.h format codebase 2022-07-28 08:39:57 -05:00
BuffComponent.cpp Add Remove Buff Behavior and patch infinite use Imagination Backpack(#845) 2022-11-27 16:40:14 -08:00
BuffComponent.h Add Remove Buff Behavior and patch infinite use Imagination Backpack(#845) 2022-11-27 16:40:14 -08:00
BuildBorderComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
BuildBorderComponent.h format codebase 2022-07-28 08:39:57 -05:00
CharacterComponent.cpp add 1261 to the disable landing animation switch case (#819) 2022-11-05 19:09:39 -05:00
CharacterComponent.h Mounts v2 (#726) 2022-09-02 13:49:19 -05:00
CMakeLists.txt Player forced movement component (#672) 2022-07-24 13:25:10 -05:00
Component.cpp format codebase 2022-07-28 08:39:57 -05:00
Component.h format codebase 2022-07-28 08:39:57 -05:00
ControllablePhysicsComponent.cpp Mounts v2 (#726) 2022-09-02 13:49:19 -05:00
ControllablePhysicsComponent.h Mounts v2 (#726) 2022-09-02 13:49:19 -05:00
DestroyableComponent.cpp Implement GTest and change windows output path 2022-11-07 00:12:35 -08:00
DestroyableComponent.h Implement GTest and change windows output path 2022-11-07 00:12:35 -08:00
InventoryComponent.cpp Fix Model Vault (#870) 2022-12-04 16:25:25 -06:00
InventoryComponent.h Mounts v2 (#726) 2022-09-02 13:49:19 -05:00
LevelProgressionComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
LevelProgressionComponent.h make LoadFromXml usage consistent across comps (#673) 2022-07-24 21:03:22 -05:00
LUPExhibitComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
LUPExhibitComponent.h format codebase 2022-07-28 08:39:57 -05:00
MissionComponent.cpp Fix missions re-ordering on reload (#686) 2022-07-30 20:56:21 -07:00
MissionComponent.h Fix missions re-ordering on reload (#686) 2022-07-30 20:56:21 -07:00
MissionOfferComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
MissionOfferComponent.h format codebase 2022-07-28 08:39:57 -05:00
ModelComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
ModelComponent.h Fix Model Component Serialization (#655) 2022-07-19 16:51:35 -05:00
ModuleAssemblyComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
ModuleAssemblyComponent.h format codebase 2022-07-28 08:39:57 -05:00
MovementAIComponent.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
MovementAIComponent.h format codebase 2022-07-28 08:39:57 -05:00
MovingPlatformComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
MovingPlatformComponent.h format codebase 2022-07-28 08:39:57 -05:00
PetComponent.cpp Fix Pet Taming causing seg fault (#818) 2022-11-05 19:09:26 -05:00
PetComponent.h format codebase 2022-07-28 08:39:57 -05:00
PhantomPhysicsComponent.cpp Fix death planes (#735) 2022-08-16 22:28:50 -05:00
PhantomPhysicsComponent.h format codebase 2022-07-28 08:39:57 -05:00
PlayerForcedMovementComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
PlayerForcedMovementComponent.h format codebase 2022-07-28 08:39:57 -05:00
PossessableComponent.cpp Mounts v2 (#726) 2022-09-02 13:49:19 -05:00
PossessableComponent.h Mounts v2 (#726) 2022-09-02 13:49:19 -05:00
PossessorComponent.cpp Mounts v2 (#726) 2022-09-02 13:49:19 -05:00
PossessorComponent.h Mounts v2 (#726) 2022-09-02 13:49:19 -05:00
PropertyComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
PropertyComponent.h Public release of the DLU server code! 2021-12-05 18:54:36 +01:00
PropertyEntranceComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
PropertyEntranceComponent.h convert to unix line endings 2022-08-05 22:01:59 -05:00
PropertyManagementComponent.cpp Implement undo action for pre-built models (#830) 2022-11-27 16:48:46 -08:00
PropertyManagementComponent.h convert to unix line endings 2022-08-05 22:01:59 -05:00
PropertyVendorComponent.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
PropertyVendorComponent.h convert to unix line endings 2022-08-05 22:01:59 -05:00
ProximityMonitorComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
ProximityMonitorComponent.h format codebase 2022-07-28 08:39:57 -05:00
RacingControlComponent.cpp Merge branch 'main' into editorconfig 2022-07-28 09:27:06 -05:00
RacingControlComponent.h format codebase 2022-07-28 08:39:57 -05:00
RailActivatorComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
RailActivatorComponent.h format codebase 2022-07-28 08:39:57 -05:00
RebuildComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
RebuildComponent.h format codebase 2022-07-28 08:39:57 -05:00
RenderComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
RenderComponent.h format codebase 2022-07-28 08:39:57 -05:00
RigidbodyPhantomPhysicsComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
RigidbodyPhantomPhysicsComponent.h format codebase 2022-07-28 08:39:57 -05:00
RocketLaunchLupComponent.cpp remove cdclient include 2022-05-17 10:20:36 -05:00
RocketLaunchLupComponent.h format codebase 2022-07-28 08:39:57 -05:00
RocketLaunchpadControlComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
RocketLaunchpadControlComponent.h format codebase 2022-07-28 08:39:57 -05:00
ScriptedActivityComponent.cpp Add support to reload the config (#868) 2022-12-04 16:25:58 -06:00
ScriptedActivityComponent.h Add support to reload the config (#868) 2022-12-04 16:25:58 -06:00
ShootingGalleryComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
ShootingGalleryComponent.h format codebase 2022-07-28 08:39:57 -05:00
SimplePhysicsComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
SimplePhysicsComponent.h format codebase 2022-07-28 08:39:57 -05:00
SkillComponent.cpp Fix crash in BasicAttackBehavior (#862) 2022-12-15 22:10:58 -08:00
SkillComponent.h format codebase 2022-07-28 08:39:57 -05:00
SoundTriggerComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
SoundTriggerComponent.h format codebase 2022-07-28 08:39:57 -05:00
SwitchComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
SwitchComponent.h format codebase 2022-07-28 08:39:57 -05:00
VehiclePhysicsComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
VehiclePhysicsComponent.h format codebase 2022-07-28 08:39:57 -05:00
VendorComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
VendorComponent.h format codebase 2022-07-28 08:39:57 -05:00