4 ms·
> "No way to prevent this", Says Only Language Where This Regularly Happens clang -fbounds-safety ... also see lib0xc etc.: https://news.ycombinator.com/it
by musicale 5mo ago
> "No way to prevent this", Says Only Language Where This Regularly Happens
clang -fbounds-safety ...
also see lib0xc etc.: https://news.ycombinator.com/item?id=47978834 https://news.ycombinator.com/item?id=47978834
- dataflow 5mo agoNOTE: This is a design document and the feature is not available for users yet. https://clang.llvm.org/docs/BoundsSafety.html https://clang.llvm.org/docs/BoundsSafety.html
- musicale 5mo agoIt has been available in Apple's version[1] for several years, and it appears to be migrating into upstream as well. On macOS you can try it with: clang -Xclang -fbounds-safety program.c Microsoft also seems to be using it (see above link regarding lib0xc). [1] https://github.com/swiftlang/llvm-project https://github.com/swiftlang/llvm-project