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

You do aligned reads, which can't crash.

Not even musl uses a scalar loop, if it can do aligned reads/writes: https://git.musl-libc.org/cgit/musl/tree/src/string/stpcpy.c

And you don't need to worry about C UB if you do it in ASM.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: