Properly handle potential NULL-deref issues#1996
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR updates CommandLine.c to validate that Poem
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Comment |
While the value of optarg semantically is non-zero for required arguments, this isn't obvious for static code analyzers. Thus this PR first adds the missing asserts to make this consistent, before then upgrading those to full-on argument parsing failures.
Ref: Coverity issue CID 645928.
Summary by CodeRabbit