[all-commits] [llvm/llvm-project] 9417d9: [libc] Make the bump pointer explicitly return nul...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Mon May 15 04:16:09 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9417d9fc38c81e1c13aec49f81fa7bf93c9a4bb6
https://github.com/llvm/llvm-project/commit/9417d9fc38c81e1c13aec49f81fa7bf93c9a4bb6
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2023-05-15 (Mon, 15 May 2023)
Changed paths:
M libc/test/IntegrationTest/test.cpp
M libc/test/UnitTest/HermeticTestUtils.cpp
Log Message:
-----------
[libc] Make the bump pointer explicitly return null on buffer oveerrun
We use a simple bump ptr in the `libc` tests. If we run out of data we
can currently return other static memory and have weird failure cases.
We should fail more explicitly here by returning a null pointer instead.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D150529
More information about the All-commits
mailing list