Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'd be surprised if some combination of ASAN and UBSAN wouldn't catch this and similar dangling references


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


I think you need to actually use the dangling reference: https://godbolt.org/z/f4s3fT3nM


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: