Repository navigation
Conversation
Assisted-by: codex:gpt-6-luna AI-Scope: Generated the range checks on the numeric arguments and the allocation growth guard from a list of static-analysis sites; reviewed by a human before submission.
Assisted-by: codex:gpt-6-luna AI-Scope: Generated the path-length and strtol error checks from a list of static-analysis sites; reviewed by a human before submission.
Assisted-by: codex:gpt-6-luna AI-Scope: Generated the stride and size bounds check from a list of static-analysis sites; reviewed by a human before submission.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Range and size checks on inputs that previously went unchecked in three places:
crash-handler: reject a negative timestamp and uid/gid values that do not fituid_t/gid_t, capmax_core_mbso the megabyte-to-byte conversion cannot overflow, and stop growing the entry list when the doubled capacity would overflow.power-helper: fail when a sysfs path does not fit its buffer, and reject conversion errors when parsing the charge limit and the charge start threshold.wayland/ime: require a positive stride of at leastwidth * 4and a width and height whose buffer size fits anint32_tbefore the popup buffer is created.Checked with
gcc -Wall -Wextra -fsyntax-onlyon the three files (ime.cwith the generated Wayland protocol headers and the gtk4 cflags): no warnings. A full meson build needs valac and was not run.Generative AI assistance
AI assistance: disclosed