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

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

Untitled attachment

Download link

Notices where this attachment appears

  1. Embed this notice
    Wolf480pl (wolf480pl@mstdn.io)'s status on Sunday, 16-Feb-2025 02:43:54 JST Wolf480pl Wolf480pl
    in reply to

    @sjb @tedu in the example I gave, the &p->y is, by definition, just pointer arithmetic.

    So it won't segfault.
    It might signed-overflow, but if the binary representation of null is zero, it probably won't.

    But if optimizations are on, the compiler is free to use that statement as an excuse to remove the null check. Because if I did pointer arithmetic on p, then surely p can't be null, right?

    In conversation about 3 months ago from gnusocial.jp permalink
  • 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.