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.
|
Thanks for going through these. The crash handler and IME checks look fine to me. One change in The start threshold is only read to decide whether it has to be lowered first, so an unreadable value should skip that adjustment and carry on to set the limit, not abort. Also, since the description says only |
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