Sources: no raw NUL bytes (expert_source.cpp, pinned.cu) + a test that scans for them
expert_source.cpp's Linux-only STRATA_TEST_UNMAP_GGUF check had a literal 0x00 byte as its character constant (since 0.1.43; gcc warned "null character(s) preserved in literal"), and the #2126 buddyinfo parser in pinned.cu got one the same way (a heredoc dropped the backslash). Both are the escaped character now. Git took pinned.cu for a binary file because of the byte, so it was committed with CRLF line endings; it is back to LF (no other change). tools/test_source_nul_bytes.py fails when any tracked source file holds a NUL byte again.
This commit is contained in:
1 parent
e000fe5d9c
commit
f5082f41a6
3 files changed
+56
-1
No files matched your search
@@ -1721,7 +1721,7 @@ bool FileExpertSource::drop_mapping(std::string& why) {
|
||||
// Linux's page cache has no such lock: only the tests close the GGUF views (STRATA_TEST_UNMAP_GGUF=1), to run the
|
||||
// unmapped path the Windows file tier takes
|
||||
const char* t = std::getenv("STRATA_TEST_UNMAP_GGUF");
|
||||
if (t == nullptr || t[0] == ' | ||||