1
1
openwrt/package
Paul Donald 1e9da9798a ppp: add memmove fortify and remove MRU patch
memcpy() with overlapping src and dest buffers is an undefined behavior
in C. In the current code, a ConfRej response is generated by copying
input data in-place, where the dest address is lower than the src.
This happens to work in practice because memcpy() forward-copies data,
matching the behavior of memmove() in this case.

However, if FORTIFY_SOURCE or Address Sanitizer is enabled, memcpy()
will detect the overlap at run time and abort the program.

Replace the memcpy() with memmove() to ensure a well-defined behavior.

Reported-by: Filippo Carletti <filippo.carletti@gmail.com>

MRU patch https://github.com/ppp-project/ppp/pull/573

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22286
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-03-07 00:04:48 +01:00
..
base-files base-files: avoid rm error messages in failsafe_wait 2026-03-04 12:54:16 +01:00
boot uboot-airoha: add a label to the spi node 2026-03-05 11:17:47 +01:00
devel gdb: add CPPFLAGS 2026-02-17 22:16:58 +01:00
firmware firmware: Add support for Airoha EN7581/AN7583 NPU variant firmware 2026-03-04 13:34:43 +01:00
kernel mac80211: ath9k: rework led allocation 2026-03-06 12:03:10 +01:00
libs libunistring: update to 1.4.2 2026-03-01 17:07:58 +01:00
network ppp: add memmove fortify and remove MRU patch 2026-03-07 00:04:48 +01:00
system apk: bump to 3.0.5 2026-03-04 00:48:12 +01:00
utils ucode: nl80211: add missing survey info attributes and fix DFS CAC time 2026-03-01 18:41:24 +00:00
Makefile build: propagate errors when generating apk indexes 2026-02-13 21:17:21 +01:00