ardupilot/ArduCopter
Peter Barker 46d37abcf7 Copter: avoid nullptr deref in config_error_loop
we may enter the config_error_loop before we call Copter's methods which allocate the wpnav object.

We send mavlink messages in the config error loop, one of which calls this method - so we end up with a nullptr dereference.

We might be able to find a way to stop sending this message in the config error loop, but that's likely to take some time to do....
2024-08-27 11:04:02 +10:00
..
APM_Config.h Copter: use HAL_PARACHUTE_ENABLED in place of PARACHUTE_ENABLED 2024-08-07 18:09:23 +10:00
AP_Arming.cpp Copter: Disarm: move autotune disarm call after setting soft arm false 2024-08-20 09:33:22 +10:00
AP_Arming.h ArduCopter: be more consistent withb our defines around optional features 2024-01-09 10:51:55 +11:00
AP_ExternalControl_Copter.cpp ArduCopter: enabled sending waypoints from a companion computer to ardupilot for copter and rover 2024-05-02 09:08:34 +09:00
AP_ExternalControl_Copter.h ArduCopter: enabled sending waypoints from a companion computer to ardupilot for copter and rover 2024-05-02 09:08:34 +09:00
AP_Rally.cpp ArduCopter: correct logging when rally disabled 2023-09-05 22:23:51 +10:00
AP_Rally.h ArduCopter: correct logging when rally disabled 2023-09-05 22:23:51 +10:00
AP_State.cpp ArduCopter: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
Attitude.cpp Copter: incorporate comment to remove unnecessary function 2024-05-14 23:16:52 -04:00
Copter.cpp Copter: Move heli logging down into motors 2024-08-14 23:39:01 -04:00
Copter.h Copter: Move heli logging down into motors 2024-08-14 23:39:01 -04:00
GCS_Copter.cpp ArduCopter: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
GCS_Copter.h ArduCopter: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
GCS_Mavlink.cpp ArduCopter: emit MAV_RESULT_DENIED if start/stop item passed to MAV_CMD_MISSION_START 2024-08-20 09:38:43 +10:00
GCS_Mavlink.h Copter: factor out methods for guided-mode commands 2024-04-14 13:19:07 +10:00
Log.cpp Copter: Move heli logging down into motors 2024-08-14 23:39:01 -04:00
Makefile.waf
Parameters.cpp Copter: use HAL_PARACHUTE_ENABLED in place of PARACHUTE_ENABLED 2024-08-07 18:09:23 +10:00
Parameters.h ArduCopter: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
RC_Channel.cpp Copter: autotune: allow access to autotune object and call through for disarm and aux function 2024-08-13 08:57:44 +09:00
RC_Channel.h ArduCopter: use AUX_FUNC instead of typedef aux_func_t 2024-02-15 08:41:30 +11:00
ReleaseNotes.txt Copter: 4.5.6-beta1 release notes 2024-08-22 10:36:52 +09:00
UserCode.cpp
UserParameters.cpp Copter: fix USER_PARAMS_ENABLED includes 2023-11-22 18:16:32 +11:00
UserParameters.h Copter: set paraam default for user parameters 2022-12-30 14:40:55 -08:00
UserVariables.h
afs_copter.cpp AP_AdvancedFailsafe: option to automatically set mode to auto when datalink is loss 2023-09-12 09:09:39 +10:00
afs_copter.h AP_AdvancedFailsafe: option to automatically set mode to auto when datalink is loss 2023-09-12 09:09:39 +10:00
autoyaw.cpp Copter: fix MAV_CMD_CONDITION_YAW with relative angle when WP_YAW_BEHAVIOR = 0 2024-06-18 10:52:01 +09:00
avoidance.cpp ArduCopter: move AC_Avoidance defines into libraries 2024-03-11 18:07:18 +11:00
avoidance_adsb.cpp ArduCopter: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
avoidance_adsb.h all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
baro_ground_effect.cpp
commands.cpp ArduCopter: remove far_from_EKF_origin sanity checks 2024-04-10 17:17:12 +10:00
compassmot.cpp Copter: send RC_CHANNELS in SITL in compassmot loop 2024-04-16 19:14:38 +10:00
config.h Copter: use HAL_PARACHUTE_ENABLED in place of PARACHUTE_ENABLED 2024-08-07 18:09:23 +10:00
crash_check.cpp Copter: use HAL_PARACHUTE_ENABLED in place of PARACHUTE_ENABLED 2024-08-07 18:09:23 +10:00
defines.h Copter: encapsulate PayLoadPlace state and methods into existing struct 2023-10-27 14:15:53 +11:00
ekf_check.cpp Copter: cleanup EKF failsafe units and division 2024-02-14 19:23:24 +09:00
esc_calibration.cpp Copter: Change from division to multiplication 2022-03-16 18:41:52 +11:00
events.cpp Copter: tidy failsafe action handling 2024-06-17 10:24:59 +10:00
failsafe.cpp ArduCopter: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
fence.cpp Copter: address minor review comments 2024-07-24 08:24:06 +10:00
heli.cpp Copter: allow tradheli inverted feature for stabilize, althold, loiter and auto modes 2024-07-02 08:39:33 +09:00
inertia.cpp
land_detector.cpp Copter: use HAL_PARACHUTE_ENABLED in place of PARACHUTE_ENABLED 2024-08-07 18:09:23 +10:00
landing_gear.cpp ArduCopter: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
mode.cpp Copter: Ground oscillation gain reduction 2024-07-25 09:50:35 +10:00
mode.h copter: flowhold: move to constant dt filter and provide dt in runtime cutoff frequency update 2024-08-20 09:09:41 +10:00
mode_acro.cpp Copter: `euler_rate_to_ang_vel` takes Quaternion attitude 2024-05-07 08:34:40 +09:00
mode_acro_heli.cpp Copter: `euler_rate_to_ang_vel` takes Quaternion attitude 2024-05-07 08:34:40 +09:00
mode_althold.cpp ArduCopter: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
mode_auto.cpp Copter: avoid nullptr deref in config_error_loop 2024-08-27 11:04:02 +10:00
mode_autorotate.cpp Copter: Change to Boolean value 2023-11-11 09:06:42 +09:00
mode_autotune.cpp Copter: autotune: allow access to autotune object and call through for disarm and aux function 2024-08-13 08:57:44 +09:00
mode_avoid_adsb.cpp
mode_brake.cpp Copter: Note that this process is for SOLO 2023-06-20 11:10:26 +10:00
mode_circle.cpp Copter: update "CH6 tuning" comments 2024-07-25 09:40:13 +10:00
mode_drift.cpp Copter: add support for command model class 2022-06-28 07:56:12 +09:00
mode_flip.cpp ArduCopter: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
mode_flowhold.cpp copter: flowhold: move to constant dt filter and provide dt in runtime cutoff frequency update 2024-08-20 09:09:41 +10:00
mode_follow.cpp ArduCopter: move AC_Avoidance defines into libraries 2024-03-11 18:07:18 +11:00
mode_guided.cpp Copter: notify when fence breach has cleared 2024-07-24 08:24:06 +10:00
mode_guided_nogps.cpp
mode_land.cpp Copter: disable fences for landing by suppressing in the fence check rather than using a state machine 2024-07-24 08:24:06 +10:00
mode_loiter.cpp ArduCopter: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
mode_poshold.cpp ArduCopter: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
mode_rtl.cpp Copter: disable fences for landing by suppressing in the fence check rather than using a state machine 2024-07-24 08:24:06 +10:00
mode_smart_rtl.cpp Copter: SmartRTL mode restores point if interrupted 2024-07-24 17:22:44 +10:00
mode_sport.cpp ArduCopter: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
mode_stabilize.cpp Copter: use pilot_desired_throttle rather than limit_throttle_out in stabilize and acro. 2022-09-07 17:03:03 +01:00
mode_stabilize_heli.cpp Copter: suggested clean up items 2024-07-02 08:39:33 +09:00
mode_systemid.cpp Copter: change input_loiter_xxx to input_vel_xxx in sysid mode 2024-05-14 23:16:52 -04:00
mode_throw.cpp ArduCopter: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
mode_turtle.cpp ArduCopter: move RC bits in mavlink to common code 2024-02-10 11:46:44 +11:00
mode_zigzag.cpp ArduCopter: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
motor_test.cpp Copter: check with motors if motor test is allowed 2023-06-27 10:24:15 +10:00
motors.cpp Copter: Clear the counter when rudder arm operation is disabled 2024-06-17 09:56:22 +10:00
navigation.cpp
precision_landing.cpp ArduCopter: configuration of Precision Landing for custom build server 2023-03-27 09:04:07 +11:00
radio.cpp ArduCopter: move RC bits in mavlink to common code 2024-02-10 11:46:44 +11:00
sensors.cpp ArduCopter: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
standby.cpp
surface_tracking.cpp Copter: remove unused #if around rangefinder 2024-07-08 10:38:17 +10:00
system.cpp ArduCopter: correct compilation with AP_RRSI_ENABLED false 2024-07-24 09:11:39 +10:00
takeoff.cpp Copter: encapsulate auto takeoff into an ojbect 2023-10-18 13:47:11 +11:00
takeoff_check.cpp Copter: Support checking max rpm in the takeoff check 2023-05-02 10:23:55 +10:00
terrain.cpp ArduCopter: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
toy_mode.cpp Copter: correct skyviper-v2450 compilation 2024-07-30 10:30:44 +10:00
toy_mode.h Copter: fix USER_PARAMS_ENABLED includes 2023-11-22 18:16:32 +11:00
tuning.cpp ArduCopter: rename pid setters to include set_ in the names 2024-07-31 18:43:42 +10:00
version.h ArduCopter: fix version setting in CheckFirmware app descriptor 2024-02-21 18:54:17 +11:00
wscript Copter: use new surface distance library 2024-05-28 09:55:36 +10:00