Skip to content

Fix ignored device settings type override - #253

Open
drebbe-intrepid wants to merge 2 commits into
masterfrom
codex/fix-244-settings-override
Open

drebbe-intrepid wants to merge 2 commits into
masterfrom
codex/fix-244-settings-override

Conversation

@drebbe-intrepid

@drebbe-intrepid drebbe-intrepid commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Fixes #244

get_device_settings(device, device_type) skipped discovery but passed a zero settings type to the native library. Assign the supplied override before requesting settings, and reject values outside the header's settings-type range while preserving -1 discovery.

Hardware-free mock-library regression tests cover explicit overrides (including both range boundaries), omitted and explicit discovery, invalid/overflowing values, native failures, and settings size/vnet forwarding. Each case uses a subprocess to isolate the global library override.

Validation: Windows x64 / CPython 3.14.5, python setup.py build; original code fails 3 of 9 new tests; fixed full suite passes all 39 tests; git diff --check passes. No hardware accessed. Independent critic and builder agreed before publication. Hardware validation and final CI acceptance remain with the coordinator.

Final reviewed commit: 8aa997afc5df533f5b17bd5ea294365151d8f106. Critic /root/critic244: "I agree with the revised final diff. No blocking findings." Builder also explicitly agrees. Critic independently passed all 9 regression tests; revised full suite passed all 39 tests. The i386 mock DLL's undecorated stdcall aliases were verified from its export table; x86 runtime was not tested. Compile/link and regression subprocess calls have timeouts.

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.

[P2] get_device_settings ignores its device_type override

1 participant