Re:Hardening the C++ Standard Library at scale
by lang4d on Sunday November 30, 2025 @12:44PM
(#46098735)
I'd be surprised if some combination of ASAN and UBSAN wouldn't catch this and similar dangling references
[ Parent
| on HN ]
Re:Hardening the C++ Standard Library at scale
by steveklabnik on Sunday November 30, 2025 @03:28PM
(#46100097)
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
Re:Hardening the C++ Standard Library at scale
by aw1621107 on Monday December 01, 2025 @06:25AM
(#46106130)
I think you need to actually use the dangling reference: https://godbolt.org/z/f4s3fT3nM
Re:Hardening the C++ Standard Library at scale
by steveklabnik on Monday December 01, 2025 @10:47AM
(#46108776)
Ah, that would make sense, yes. Thanks!