Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
olliej
on Oct 6, 2022
|
parent
|
context
|
favorite
| on:
RFC: C++ Buffer Hardening
Can you provide examples of UB that could be unspecified behaviour, where UB does anything other than cause harm?
mgaunard
on Oct 6, 2022
|
next
[–]
Dereferencing a pointer to memory that doesn't point to a live valid object is undefined behaviour. You couldn't possibly specify what this does without instrumenting every single access to memory, like asan or valgrind does.
olliej
on Oct 6, 2022
|
parent
|
next
[–]
As I said, behaviour that
could
be unspecified rather than undefined.
This is an example of something that cannot be anything other than UB.
kllrnohj
on Oct 6, 2022
|
prev
[–]
https://www.youtube.com/watch?v=yG1OZ69H_-o
is a great talk on this
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: