-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gosec int overflow #36
Conversation
While here fix some remaining dtm->edm renaming
While here standardize on UTC time rather than local time.
All of these are a result of how the parquet library deals with uint values: the struct field will be a signed integer but a struct tag tells it how to actually interpret the contents.
Fixes gosec complaint about possible integer overflow.
WalkthroughThe changes in this pull request involve two main files. In Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🔇 Additional comments (7)pkg/runner/runner.go (7)
The field rename is consistent with the PR objectives and maintains the same type and parquet schema attributes.
The added security comments clarify that the port number conversions are safe because:
Line range hint The added security comments clarify that the IPv4 address conversions are safe because the parquet fields use INT32 with convertedtype=UINT_32.
The added security comments clarify that the IPv6 address conversions are safe because the parquet fields use INT64 with convertedtype=UINT_64. Also applies to: 1703-1704
The added security comments clarify that timestamp conversions are safe because:
Also applies to: 1938-1938
The added security comment clarifies that the status bits conversion is safe because:
Line range hint The changes consistently improve the code by:
The changes are focused on improving code clarity and security documentation without modifying the underlying logic. Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
Documentation
Refactor
DTMStatusBits
toEDMStatusBits
in the histogramData structure for consistency.