Repository navigation
perf(apple): read app plists without the plist package - #4989
Conversation
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 3 new findings on 8419377. The verdict and the full list are in the summary comment.
8419377 to
21c9c81
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 21c9c81. The verdict and the full list are in the summary comment.
|
Reviewed 21c9c81: the XML path changes plist string values, so this needs one fix before merge. plist-value.ts:140 reads Not blocking, and each can be taken or left: plist-value.ts:291 counts object visits in For a follow-up issue, not for this PR: plist-value.ts:37 publishes Review threads: the nesting-depth thread and the XML integer thread are fixed at this head. The unsigned binary ints thread does not apply, because 1, 2 and 4-byte binary ints are unsigned in Apple's format and in plist 5.0.0, and plist-value.test.ts:129 pins it, so it can be resolved. The checks are still pending. Body rules fails because the PR body has 264 words outside code blocks and the limit is 250; it reads only the PR body. Smoke Tests and one other check were still running when this was written. There are no conflicts. Not verified here: the reader was not run, plist 5.0.0 behavior was read from its published source, and the npm size comparison and the 124-file corpus diff were not re-run. The next step before merge is the whitespace fix above with its fixture. |
21c9c81 to
114e79e
Compare
|
Whitespace fix landed in
Three Two refusals that follow from untrimmed text, both matching Also taken from the same review: Re-ran the differential check over the fixtures and 25 generated documents in both stored forms against The reason-table point is left to its own follow-up, as the review suggested. |
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
The code at 114e79e is ready. The earlier findings from 21c9c81 are fixed at this commit, and nothing blocking remains. Not blocking, and fine to take or leave: the The thread on the single sync No conflicts are known. Smoke Tests (macos) and one other check are still running, and Body rules was cancelled; it reads only the PR body, so the diff cannot affect it. The macOS smoke route reaches |
Summary
Closes #4979.
parseApplePlistlazily importedplist, which bundled@xmldom/xmldomandxmlbuilderinto core for one function.core/plist-value.tsnow reads a property list with the repo's own@agent-device/xmlwalker and adds abplist00reader: dictionary, array, string, integer, real, boolean, null, date, data, and unique id. Text is read untrimmed, so a padded or CDATA-split string answers exactly what Apple's parsers answer. Every offset, length and object reference is checked against the document, nesting is bounded, one object decodes once, and a dictionary key becomes an own property, so__proto__cannot repoint a prototype. The reader is published as its own@agent-device/platform-apple/plistsubpath, and is synchronous through the plugin-host contract. It refuses what a permissive reader guesses at: XML numeric text that is not exactly a number or exceedsMAX_SAFE_INTEGER, an unparseable<date>, a<plist>with several children, OpenStep text, non-string binary keys, and integer widths over eight bytes.Before / after
plist,@xmldom/xmldomandxmlbuilderno longer appear indist/srcorTHIRD_PARTY_NOTICES.txt.Validation
Head
114e79e3ddon0.22. Ranpnpm install --frozen-lockfile,pnpm build, typecheck, lint, format,check:layering,check:fallow,check:production-exports,check:command-docs, focused Apple, Limrun and XML tests, andpnpm check:affected --run --base origin/0.22 --head HEAD. Diffed the reader againstplutilandplistlibover generated and real documents plus mutated and truncated bytes: identical values, typed refusals only. Padded-key, padded-string and CDATA-split fixtures pin the text. Not device-facing: no dispatch, capture or lifecycle change, so no device lane.