Skip to content

Bound camera XML metadata reads - #44

Merged
mikecerisano merged 1 commit into
mainfrom
fix/xml-metadata-bounds-20261017
Oct 17, 2026
Merged

mikecerisano merged 1 commit into
mainfrom
fix/xml-metadata-bounds-20261017

Conversation

@mikecerisano

@mikecerisano mikecerisano commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

A card with a large XML sidecar could make the optional camera-name detector load and search the whole file. It now inspects only regular, non-symlink XML files up to 4 MiB and skips larger files entirely. Each candidate uses a bounded descriptor read and its own autorelease pool; cancellation is checked through the read and pattern search. Named .xml files are parsed once.

This changes only advisory camera naming. Transfer, verification, reports, and safety verdicts are untouched.

Local validation:

  • Focused Mac cancellation and XML-bound tests: 7/7 passed after the final test-hook correction, with no test-host restart.
  • iPad/iPhone simulator build: succeeded.
  • Exact repository Mac test gate (./test.sh mac-test): 1,174 total; 1,161 passed, 13 skipped, zero failed, no test-host restart.
  • git diff --check: clean. Rebasing onto the latest main changed no patch content.

An earlier broader Xcode command omitted the repository's -only-testing:BitMatchTests filter and launched BitMatchUITests-Runner, which was killed before bootstrapping. The exact repository gate above completed successfully; this branch does not change UI tests.

@mikecerisano
mikecerisano force-pushed the fix/xml-metadata-bounds-20261017 branch from 6f6271e to 0561355 Compare October 17, 2026 15:00
@mikecerisano
mikecerisano force-pushed the fix/xml-metadata-bounds-20261017 branch from 0561355 to de8c27d Compare October 17, 2026 15:13
@mikecerisano
mikecerisano marked this pull request as ready for review October 17, 2026 15:13
@mikecerisano
mikecerisano merged commit 2895db9 into main Oct 17, 2026
4 of 8 checks passed
@mikecerisano
mikecerisano deleted the fix/xml-metadata-bounds-20261017 branch October 17, 2026 15:13
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