Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lang4d
4 months ago
|
parent
|
context
|
favorite
| on:
Hardening the C++ Standard Library at scale
I'd be surprised if some combination of ASAN and UBSAN wouldn't catch this and similar dangling references
steveklabnik
4 months ago
[–]
I thought it should too, but it doesn't seem to, unless I made a mistake, which I probably did:
https://godbolt.org/z/Ex63vxj4r
aw1621107
4 months ago
|
parent
[–]
I think you need to actually use the dangling reference:
https://godbolt.org/z/f4s3fT3nM
steveklabnik
4 months ago
|
root
|
parent
[–]
Ah, that would make sense, yes. Thanks!
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: