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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/test/IntegrationTest/test.cpp | ||
---|---|---|
69 | The size is unsigned so we'll get warnings about the comparison. Since we know ptr >= memory we know that this will never be negative. |
s/uint64_t/ptrdiff_t ?
s/memory_size/MEMORY_SIZE