Hacker News new | past | comments | ask | show | jobs | submit login

So, all C/C++ code on {Linux,} but not {OpenBSD,} that handles argc/argv needs to at least just exit() on the conditions added by the like 8 lines in main() in the patch for this issue?: https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c...

  if (argc < 1) {
      exit(126);
  }

  if (argv[n] == NULL) {
      exit(128)
  }

  // But this could never ever happen?
  if (argv == NULL)



Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: