Thomas Watson
0246b03424
AP_Filesystem: LittleFS: use NEW_NOTHROW instead of new
...
Unfortunate CI did not catch this...
2025-02-22 09:46:33 -05:00
Thomas Watson
232f6524f6
AP_Scripting: patch vendored Lua to 5.3.6
...
In particular this fixes some exceedingly rare/impossible
use-after-frees.
Add the new docs from the distribution and clarify where we get our code
from. To maintain our alterations, the following patches have been
applied to the source from upstream's repository (1221e987...75ea9ccb)
to bring the source up to date:
* Bug: Long brackets with a huge number of '=' causes overflow
A long bracket with too many equal signs can overflow the 'int' used for
the counting and some arithmetic done on the value. Changing the counter
to 'size_t' avoids that. (Because what is counted goes to a buffer, an
overflow in the counter will first raise a buffer-overflow error.)
* Fixed bug in 'lua_upvaluejoin'
Bug-fix: joining an upvalue with itself could cause a use-after-free
crash.
* Fixed typos in comments
* Fixed missing GC barriers in compiler and undump
While building a new prototype, the GC needs barriers for every object
(strings and nested prototypes) that is attached to the new prototype.
* Updated release number and copyright year
* Fixed bug: invalid mode can crash 'io.popen'
* Fixed bug: Negation overflow in getlocal/setlocal
* 'realloc' can fail when shrinking a block
According to ISO C, 'realloc' can fail when shrinking a block. If that
happens, 'l_alloc' simply ignores the fail and returns the original
block.
* Fixed bug of long strings in binary chunks
When "undumping" a long string, the function 'LoadVector' can call the
reader function, which can run the garbage collector, which can collect
the string being read. So, the string must be anchored during the call
to 'LoadVector'.
2025-02-22 14:45:30 +00:00
Shiv Tyagi
297ec3fa7c
AP_Scripting: use new AP_PERIPH_RC_OUT_ENABLED define
2025-02-22 18:26:07 +11:00
Shiv Tyagi
11e42a94d0
AP_HAL_ChibiOS: use new AP_PERIPH_RC_OUT_ENABLED define
2025-02-22 18:26:07 +11:00
Shiv Tyagi
6a429b887a
Tools: use new AP_PERIPH_RC_OUT_ENABLED define
2025-02-22 18:26:07 +11:00
SULILG
1793c4c5f1
AP_HAL_ChibiOS_hwdef : Modify the LED on the SULILGH7-P1-P2 flight controller
2025-02-22 14:03:06 +11:00
Bob Long
8d427dd229
GCS_Common: fix missing #if for CAMERA_FOV_STATUS
2025-02-22 13:52:51 +11:00
Peter Barker
922f86a7ed
AP_GPS: correct uBlox config debugging
2025-02-21 21:47:51 -05:00
Shiv Tyagi
76aed8f89c
Tools: use new AP_PERIPH_HOBBYWING_ESC define
2025-02-20 21:56:14 +11:00
Shiv Tyagi
0197220bc5
AP_HAL_ChibiOS: use new AP_PERIPH_HOBBYWING_ESC define
2025-02-20 21:56:14 +11:00
Shiv Tyagi
2b6bbedce6
Tools: use new AP_PERIPH_NOTIFY_ENABLED define
2025-02-20 13:32:20 +11:00
Shiv Tyagi
44d07c8f79
AP_Scripting: use new AP_PERIPH_NOTIFY_ENABLED define
2025-02-20 13:32:20 +11:00
Shiv Tyagi
85b3d6a625
AP_HAL_ChibiOS: use new AP_PERIPH_NOTIFY_ENABLED define
2025-02-20 13:32:20 +11:00
Shiv Tyagi
82a0347657
Tools: use new AP_PERIPH_EFI_ENABLED define
2025-02-20 13:05:19 +11:00
Shiv Tyagi
49755d6212
AP_HAL_ChibiOS: use new AP_PERIPH_EFI_ENABLED define
2025-02-20 13:05:19 +11:00
Shiv Tyagi
9b226edf3a
Tools: use new AP_PERIPH_ADSB_ENABLED define
2025-02-20 12:06:00 +11:00
Shiv Tyagi
ab725360c1
AP_HAL_ChibiOS: use new AP_PERIPH_ADSB_ENABLED define
2025-02-20 12:06:00 +11:00
Peter Barker
6dcb350b72
Copter: save a few bytes in variance check
2025-02-19 17:03:25 +09:00
Peter Barker
b0c31d865e
ArduPlane: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
4bd5bb27c9
ArduCopter: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
dac5269af1
AP_RangeFinder: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
2ec34d1b05
AP_Proximity: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
a6d88fd25e
AP_Compass: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
51d202fd8a
AP_Baro: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
68969e110e
AP_Airspeed: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
3e9cb2554e
RC_Channel: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
f2104c97d8
AP_Mount: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
bc848d2bed
AP_InertialSensor: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
c31d654623
AP_HAL_ChibiOS: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
4d39f80d4c
AP_GyroFFT: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
5a2ef8e960
AP_Generator: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
1ec35b57f3
AP_DroneCAN: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
c4428d82cb
AP_Declination: mark declination tables as __EXTFLASHFUNC__
2025-02-19 18:01:48 +11:00
Peter Barker
9351963f78
AP_CANManager: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
b9efab548c
AP_BattMonitor: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
65fca2a37d
AP_HAL: mark many functions as __INITFUNC__
...
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
3bcd04c4c9
AP_HAL_Linux: move AP_Airspeed configuration into linux hwdef
2025-02-19 15:42:52 +11:00
Peter Barker
1f102d8fb9
AP_Airspeed: move AP_Airspeed configuration into linux hwdef
2025-02-19 15:42:52 +11:00
Peter Barker
cbdaf2be46
AP_InertialSensor: move AP_InertialSensor configuration into linux hwdef
2025-02-19 15:42:52 +11:00
Peter Barker
e3e5199e53
AP_HAL_Linux: move AP_InertialSensor configuration into linux hwdef
2025-02-19 15:42:52 +11:00
Peter Barker
c9e4a7d195
AP_HAL_Linux: move defaulting of ublox speed change into linux hwdef
2025-02-19 15:42:52 +11:00
Peter Barker
8f420defc1
AP_GPS: move defaulting of ublox speed change into linux hwdef
2025-02-19 15:42:52 +11:00
Peter Barker
5181350909
AP_OpticalFlow: move enabling of Onboard OF into bebop hwdef
2025-02-19 15:42:52 +11:00
Peter Barker
05bc0c0669
AP_HAL_Linux: move enabling of Onboard OF into bebop hwdef
2025-02-19 15:42:52 +11:00
Peter Barker
64633197cf
AP_Relay: move defaulting of relay pin params to linux hwdefs
2025-02-19 15:42:52 +11:00
Peter Barker
82ab52a7bf
AP_HAL_Linux: move defaulting of relay pin params to linux hwdefs
2025-02-19 15:42:52 +11:00
Peter Barker
b377a00ae3
AP_HAL: move defaulting of relay pin params to linux hwdefs
2025-02-19 15:42:52 +11:00
Peter Barker
640231c6d5
AP_HAL_Linux: move custom compass rotation into linux hwdefs
2025-02-19 15:42:52 +11:00
Peter Barker
c7a9054d14
AP_Compass: move custom compass rotation into linux hwdefs
2025-02-19 15:42:52 +11:00
Peter Barker
e26ee85cf6
AP_RangeFinder: move enabling of specific rangefinders into linux hwdef
2025-02-19 15:42:52 +11:00