Skip to content

Validate maximum DDC overrides#1878

Open
offyotto wants to merge 1 commit into
MonitorControl:mainfrom
offyotto:validate-max-ddc-override
Open

Validate maximum DDC overrides#1878
offyotto wants to merge 1 commit into
MonitorControl:mainfrom
offyotto:validate-max-ddc-override

Conversation

@offyotto

@offyotto offyotto commented Jul 22, 2026

Copy link
Copy Markdown

The maximum DDC override accepts any unsigned integer, then narrows it through Int and UInt16. Values above 65,535 can crash when entered or when the DDC value is converted.

Accept only values from 0 through 65,535, matching the minimum override. Invalid values clear the override as before.

ran tests: xcodebuild -project MonitorControl.xcodeproj -scheme MonitorControl -configuration Debug -derivedDataPath /tmp/MonitorControlDerivedData CODE_SIGNING_ALLOWED=NO build (BUILD SUCCEEDED)
on M1 Pro mbp 14in (macOS 26.5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant