GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    nina (q66@blahaj.social)'s status on Tuesday, 28-Jan-2025 11:50:55 JSTninanina

    please, can we just forget the `U *buf; x = *((T *)&buf[0])` antipattern exists...

    found yet another (notable, with lots of revdeps) project whose new release fails to build (rightfully so) under clang; subsequently i found a pull request that "fixes" the build by changing it to `*(T *)(void *)&buf[0]` that was merged by upstream

    it's UB, it's wrong, it *will* miscompile and wreak havoc

    just use memcpy

    you will certainly not regret using memcpy

    memcpy is your friend

    (it also looks better)

    In conversationabout a year ago from blahaj.socialpermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.