What is Nostr?
Matthew Garrett /
npub1aa0…ejrs
2024-12-11 15:33:09

Matthew Garrett on Nostr: Today's discovery: gcc will remove calls to memcpy() with a len of 0 (good), knows ...

Today's discovery: gcc will remove calls to memcpy() with a len of 0 (good), knows it's UB to call memcpy() with a dest of NULL (spec compliant), will assume that dest can't be NULL (fucking compilers, man), will combine both to engage in this UTTERLY PATHOLOGICAL BEHAVIOUR https://godbolt.org/z/cPdx6v13r
Author Public Key
npub1aa0gpek8gwr77984c6ufq70j9d5y0hq5xegqrs8dvc4zp0vfzemsuuejrs