Skip to content

Commit e5591a2

Browse files
committed
[libc] Enable wide-read memory operations by default on Linux
Summary: This patch changes the linux build to use the wide reads on the memory operations by default. These memory functions will now potentially read outside of the bounds explicitly allowed by the current function. While technically undefined behavior in the standard, plenty of C library implementations do this. it will not cause a segmentation fault on linux as long as you do not cross a page boundary, and because we are only *reading* memory it should not have atomic effects.
1 parent 8d7b50e commit e5591a2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libc/config/linux/config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"string": {
3+
"LIBC_CONF_STRING_UNSAFE_WIDE_READ": {
4+
"value": true
5+
}
6+
}
7+
}

0 commit comments

Comments
 (0)