ctf: Support CTF2 empty structs#409
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughStructParser now imports CTFJsonMetadataNode and extends its parse() method to handle empty structs in CTF2 JSON format. When parsing JSON metadata with no struct body and no name, the parser creates an empty StructDeclaration instead of throwing an error. ChangesCTF2 Empty Struct JSON Parsing
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: Arnaud Fiorini <fiorini.arnaud@gmail.com>
6e63dda to
a7db062
Compare
What it does
Allow empty structs with no names to be read as they are valid ctf2 structs. Fixes #378
How to test
Open the attached trace of the issue
Follow-ups
N/A
Review checklist
Summary by CodeRabbit