You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 `\\\\?\\**`.
Fixestauri-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 `\\\\?\\**`.
Fixestauri-apps#10815
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: