|
|
|
|
|
by rhdjebejdbd
153 days ago
|
|
That's a lot of words, but how is that even possible? Pointers and arrays are basically interchangeable in C, and you have to do that constantly in any large program. Even the blog post has a malloc in it. Once you start passing around a pointer to the middle of the array all size info is lost. Are you talking about -fsanitize=address? It's too slow to be used in production |
|
[0]: https://clang.llvm.org/docs/BoundsSafety.html
[1]: https://clang.llvm.org/docs/BoundsSafetyAdoptionGuide.html