summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2023-03-31 09:48:12 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-04-04 22:47:25 +0000
commita60dc001c3d202d19cbf07b455c8a165a58fa01f (patch)
treec355f3026cc5d57b7233c6aa022e8d53497184a5 /test
parentcafcd7af907083bc80a2157a368294e301960751 (diff)
downloadchrome-ec-a60dc001c3d202d19cbf07b455c8a165a58fa01f.tar.gz
libc/syscalls: Add sbrk implementation
The sbrk implementation in newlib's nosys library does not do any bounds checking to make sure the allocated memory stays within the heap: https://sourceware.org/git/?p=newlib-cygwin.git;a=blob;f=libgloss/libnosys/sbrk.c This version checks for both overflow and underflow. BRANCH=none BUG=b:234181908 TEST=./test/run_device_tests.py --board bloonchipper => PASS TEST=./test/run_device_tests.py --board dartmonkey -t sbrk => PASS Change-Id: I0be8caee76776c4a0ddabcf979d08f2f0c430aa0 Signed-off-by: Tom Hughes <tomhughes@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4390608 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions