• MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    Ai will not catch that. Static testing won’t catch this. Test suites running on the piece of hardware we had, wouldn’t catch this. Only a human reviewer would.

    This explains a lot of lsecurity issues in the last few years.

    Also, can’t compilers catch that and complain?

    • vrek@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 day ago

      Well basically it’s just a ‘magic number’. If you ban all of those many programs will either break or at minimum suffer sever performance degradation.

      • MonkderVierte@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        13 hours ago

        Not ban, warn about fixed string assigned to variable. Ok, guess that would be hard to distinguish on compiler level.