-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Infinite loop in scope::fs::push_pattern #10815
Labels
Comments
alexmoon
added
status: needs triage
This issue needs to triage, applied to new issues
type: bug
labels
Aug 28, 2024
alexmoon
added a commit
to tactile-eng/tauri
that referenced
this issue
Aug 30, 2024
If the root path element of a pattern could not be canonicalized, `scope::fs::push_pattern` would enter an infinite loop. This is because `path.pop()` does nothing and returns `false` when called on a path with no parent, which can happen even when the path element iterator is non-empty. This could occur on Windows, for example, with a pattern of `\\\\?\\**`. Fixes tauri-apps#10815
alexmoon
added a commit
to tactile-eng/tauri
that referenced
this issue
Aug 30, 2024
If the root path element of a pattern could not be canonicalized, `scope::fs::push_pattern` would enter an infinite loop. This is because `path.pop()` does nothing and returns `false` when called on a path with no parent, which can happen even when the path element iterator is non-empty. This could occur on Windows, for example, with a pattern of `\\\\?\\**`. Fixes tauri-apps#10815
alexmoon
added a commit
to tactile-eng/tauri
that referenced
this issue
Sep 17, 2024
If the root path element of a pattern could not be canonicalized, `scope::fs::push_pattern` would enter an infinite loop. This is because `path.pop()` does nothing and returns `false` when called on a path with no parent, which can happen even when the path element iterator is non-empty. This could occur on Windows, for example, with a pattern of `\\\\?\\**`. Fixes tauri-apps#10815
alexmoon
added a commit
to tactile-eng/tauri
that referenced
this issue
Sep 19, 2024
If the root path element of a pattern could not be canonicalized, `scope::fs::push_pattern` would enter an infinite loop. This is because `path.pop()` does nothing and returns `false` when called on a path with no parent, which can happen even when the path element iterator is non-empty. This could occur on Windows, for example, with a pattern of `\\\\?\\**`. Fixes tauri-apps#10815
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
On Windows, calling
tauri::scope::fs::push_pattern
with a pattern of "\\?\**" results in an infinite loop attempting to create the canonicalized path.Reproduction
Scope
.Expected behavior
push_pattern
should either return an error or process the pattern successfully.Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: