mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Make redbean StoreAsset() work better
- Better UBSAN error messages - POSIX Advisory Locks polyfills - Move redbean manual to /.help.txt - System call memory safety in ASAN mode - Character classification now does UNICODE
This commit is contained in:
parent
919b6fec10
commit
690be544da
228 changed files with 3653 additions and 3015 deletions
|
@ -91,6 +91,9 @@ bool wantpg;
|
|||
bool wantrecord;
|
||||
bool wantubsan;
|
||||
bool touchtarget;
|
||||
bool no_sanitize_null;
|
||||
bool no_sanitize_alignment;
|
||||
bool no_sanitize_pointer_overflow;
|
||||
|
||||
char *cmd;
|
||||
char *comdbg;
|
||||
|
@ -400,6 +403,12 @@ int main(int argc, char *argv[]) {
|
|||
} else if (!strcmp(argv[i], "-fno-sanitize=all")) {
|
||||
wantasan = false;
|
||||
wantubsan = false;
|
||||
} else if (!strcmp(argv[i], "-fno-sanitize=null")) {
|
||||
if (isgcc && ccversion >= 6) no_sanitize_null = true;
|
||||
} else if (!strcmp(argv[i], "-fno-sanitize=alignment")) {
|
||||
if (isgcc && ccversion >= 6) no_sanitize_alignment = true;
|
||||
} else if (!strcmp(argv[i], "-fno-sanitize=pointer-overflow")) {
|
||||
if (isgcc && ccversion >= 6) no_sanitize_pointer_overflow = true;
|
||||
} else if (startswith(argv[i], "-fsanitize=implicit") &&
|
||||
strstr(argv[i], "integer")) {
|
||||
if (isgcc) AddArg(argv[i]);
|
||||
|
@ -470,6 +479,15 @@ int main(int argc, char *argv[]) {
|
|||
AddArg("-fsanitize=undefined");
|
||||
AddArg("-fno-data-sections");
|
||||
}
|
||||
if (no_sanitize_null) {
|
||||
AddArg("-fno-sanitize=null");
|
||||
}
|
||||
if (no_sanitize_alignment) {
|
||||
AddArg("-fno-sanitize=alignment");
|
||||
}
|
||||
if (no_sanitize_pointer_overflow) {
|
||||
AddArg("-fno-sanitize=pointer-overflow");
|
||||
}
|
||||
if (wantframe) {
|
||||
AddArg("-fno-omit-frame-pointer");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue