docs(crash-reporting): correct two counts round 3 checked

- The unasserted-row count was 65, not 66: six codes are pinned individually
  (18 by name and exact shape, plus 11/31/63/68/72), against 71 table rows.
  The earlier figure counted only the it.each five and overlooked the 18 case.

- The exclusion note for 62 described a routing mechanism that is unreachable at
  the pinned Chromium: StartSandboxedProcess makes the unsandboxed decision before
  generating a policy, so the 62 return in GeneratePolicyForSandboxedProcess never
  reaches a launch. The exclusion is still right, so state the upstream-documented
  semantics instead of a mechanism a maintainer would fail to find.

Also noted for history, not fixable without rewriting a pushed commit: f0826b13c3's
message says four descriptions were trimmed where the diff trims five, and its
"two of them pointed at GetLastError()" holds of the five, not the four it names.
This commit is contained in:
m4air
2026-09-13 17:58:16 -07:00
parent dee707a605
commit 65c023af3d
2 changed files with 4 additions and 3 deletions
@@ -64,7 +64,7 @@ describe('decodeWindowsLaunchFailureCode', () => {
}
)
// 66 of the table's rows are asserted nowhere individually. The enum is contiguous 0..72 by
// 65 of the table's 71 rows are asserted nowhere individually. The enum is contiguous 0..72 by
// construction, so this catches a row dropped or renumbered by an edit without restating 71
// descriptions that would just be the table copied twice.
it('decodes every sandbox code in the contiguous range except the excluded ones', () => {
+3 -2
View File
@@ -158,8 +158,9 @@ const LAUNCH_RESULT_CODES: Record<number, readonly [string, string]> = {
*
* Deliberately absent, on one rule — never name a code that would mislead: SBOX_ALL_OK (0) and
* LAUNCH_RESULT_SUCCESS (1002) both contradict launch-failed, LAUNCH_RESULT_START (1001) is a
* range sentinel, and SBOX_ERROR_UNSANDBOXED_PROCESS (62) is ordinary control flow that
* sandbox_win.cc returns to route a child down the unsandboxed path.
* range sentinel, and SBOX_ERROR_UNSANDBOXED_PROCESS (62) is sandbox_win.h's documented "this
* process should be run unsandboxed" status rather than a fault — and is in any case unreachable
* from the pinned Chromium's launch path, which decides that before it generates a policy.
*/
export function decodeWindowsLaunchFailureCode(
exitCode: number