Skip to content

fix: secure wrapper when paths contain utf-16 characters#8539

Merged
gatzjames merged 9 commits into
developfrom
doc/secure-wrapper
Mar 31, 2025
Merged

fix: secure wrapper when paths contain utf-16 characters#8539
gatzjames merged 9 commits into
developfrom
doc/secure-wrapper

Conversation

@ryan-willis

@ryan-willis ryan-willis commented Mar 27, 2025

Copy link
Copy Markdown
Contributor

initial solution for #8537

  • refactors the wrapper to support multi-byte unicode strings in paths, not just ANSI strings
  • supports spaces in paths, fixing an issue where shortcuts would not add/remove properly
  • adds build instructions to make this a bit easier to maintain in the future

@ryan-willis ryan-willis changed the title doc: add notes and build instructions for the wrapper fix: secure wrapper when paths contain utf-16 characters Mar 28, 2025
@ryan-willis ryan-willis force-pushed the doc/secure-wrapper branch 2 times, most recently from 66d0eb0 to 60dc988 Compare March 28, 2025 05:34
@notjaywu notjaywu requested a review from Copilot March 30, 2025 01:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a secure wrapper update that addresses vulnerabilities related to local search paths, specifically improving support for multi-byte unicode strings and paths with spaces.

  • Refactors the wrapper to support UTF-16 and multi-byte unicode in paths.
  • Fixes issues with shortcut operations by handling spaces in paths.
  • Adds build instructions and a clang-format rule for consistency.

Reviewed Changes

Copilot reviewed 2 out of 6 changed files in this pull request and generated 1 comment.

File Description
packages/insomnia/src/cpp/README.md Adds documentation for building and using the secure wrapper.
.clang-format Introduces a ColumnLimit setting to enforce code formatting.
Files not reviewed (4)
  • build-secure-wrapper.sh: Language not supported
  • packages/insomnia/src/cpp/insomnia.cpp: Language not supported
  • packages/insomnia/src/cpp/manifest.txt: Language not supported
  • packages/insomnia/src/cpp/resources.rc: Language not supported

Comment thread packages/insomnia/src/cpp/README.md Outdated
@gatzjames gatzjames merged commit 8453c42 into develop Mar 31, 2025
@gatzjames gatzjames deleted the doc/secure-wrapper branch March 31, 2025 17:07
cwangsmv pushed a commit that referenced this pull request Apr 21, 2025
* fix wrapper

* doc: add notes and build instructions for the wrapper

* wrap application name when calling CreateProcessW

* make executable squirrel-aware

* quote paths if they contain a space

* fix quoted shortcuts

* Update packages/insomnia/src/cpp/README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

3 participants