Skip to content

Address code scanning findings - #38

Merged
masahiroid merged 5 commits into
mainfrom
develop
Oct 25, 2026
Merged

masahiroid merged 5 commits into
mainfrom
develop

Conversation

@masahiroid

Copy link
Copy Markdown
Owner

Race-free file reads, a linear path pattern, fuller escaping, rate-limited desktop file routes and a stricter training-site language allowlist.

masahiroid and others added 4 commits October 25, 2026 11:38
…tern, fuller escaping and rate limits

Open files without following links and inspect the handle instead of checking first,
verify the Node archive before saving it, escape backslashes in generated markup and selectors,
restrict desktop file routes and apply rate limits, and use an own-property allowlist in the training site.
@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e2302e94-23e8-447d-9d2e-935d25ac5a9f
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

const partial = archive + '.partial'; fs.writeFileSync(partial,Buffer.from(await response.arrayBuffer())); fs.renameSync(partial,archive);
const body = Buffer.from(await response.arrayBuffer());
if (crypto.createHash('sha256').update(body).digest('hex') !== expected) throw new Error('Node checksum mismatch; nothing was saved. Retry the download.');
const partial = archive + '.partial'; fs.writeFileSync(partial,body); fs.renameSync(partial,archive);
@masahiroid
masahiroid merged commit d9e8bba into main Oct 25, 2026
9 checks passed
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.

2 participants