openwrt/package
Paul Donald 3c1460a5a2
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Build all core packages / Build all core packages for selected target (push) Waiting to run
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
(cherry picked from commit 1e9da9798a)
Link: https://github.com/openwrt/openwrt/pull/22318
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-03-08 15:48:35 +01:00
..
base-files build: use STAGING_DIR for special APK package versions 2026-03-07 10:12:44 +01:00
boot mvebu: add support for RIPE Atlas Probe v5 2026-02-17 01:40:00 +01:00
devel gdb: add CPPFLAGS 2026-02-17 22:30:19 +01:00
firmware wireless-regdb: update to version 2026.02.04 2026-02-24 20:25:42 +01:00
kernel build: use STAGING_DIR for special APK package versions 2026-03-07 10:12:44 +01:00
libs build: use STAGING_DIR for special APK package versions 2026-03-07 10:12:44 +01:00
network ppp: add memmove fortify and remove MRU patch 2026-03-08 15:48:35 +01:00
system procd: update to git HEAD 2026-03-01 11:55:00 +01:00
utils ucode-mod-bpf: add CPPFLAGS 2026-02-17 22:30:37 +01:00
Makefile build: use STAGING_DIR for special APK package versions 2026-03-07 10:12:44 +01:00