-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Crash parsing invalid file URI #3286
Labels
duplicate
This issue or pull request already exists
Comments
Pretty sure this is a duplicate of #3275 |
andydotxyz
added
duplicate
This issue or pull request already exists
and removed
unverified
A bug that has been reported but not verified
labels
Sep 28, 2022
I have checked the previously fixed #3275 on the develop branch. But I found that the parsing error of this issue can still be triggered on develop branch. The two are different root causes Example code func TestParseInvalidURI(t *testing.T) {
ParseURI("/0[]://0[]")// add for tmp verify
uri, err := ParseURI("/tmp/foo.txt")
assert.NotNil(t, err)
assert.Nil(t, uri)
uri, err = ParseURI("file")
assert.NotNil(t, err)
assert.Nil(t, uri)
uri, err = ParseURI("file:")
assert.NotNil(t, err)
assert.Nil(t, uri)
uri, err = ParseURI("file://")
assert.NotNil(t, err)
assert.Nil(t, uri)
uri, err = ParseURI(":foo")
assert.NotNil(t, err)
assert.Nil(t, uri)
} Crash Log
version |
Sadly your new parse error is a bug in the parser upstream, I will try to open a PR with them @secsys-go |
andydotxyz
added a commit
to andydotxyz/uri
that referenced
this issue
Nov 15, 2022
Mentioned in fyne-io/fyne#3286
andydotxyz
added a commit
that referenced
this issue
Nov 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
Describe the bug
We used the Fuzz engine to modify some Test(TestInMemoryRepositoryCanRead) data, and then the following crash appeared. It's similar to #3275, but crashes in a different location
How to reproduce
The simplified test code is in Example code
Screenshots
Crash Log
Example code
Fyne version
commit 638ae24 (HEAD -> master, origin/master, origin/HEAD)
Go compiler version
1.17.8
Operating system
Linux
Operating system version
OS: Linux r920 4.15.0-159-generic #167-Ubuntu
Additional Information
No response
The text was updated successfully, but these errors were encountered: