Add length check to cudf::strings::is_timestamp logic for literals - #23712
Add length check to cudf::strings::is_timestamp logic for literals#23712davidwendt wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review. 📝 WalkthroughSummary by CodeRabbit
WalkthroughThe timestamp parser now checks input length before matching literal characters. A regression test verifies that ChangesTimestamp literal validation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized fix adds a length check to prevent invalid reads and includes a regression test; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Description
Adds a length check before comparing a literal within the given format against a string row value in the
cudf::strings::is_timestamp()API. This prevents reading past the end of the string. Also added a test for this case as well. The other format specifiers (non-literal) already check the length correctly.Closes #23660
Checklist