Skip to content
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

Fix Uncontrolled data used #13

Merged
merged 3 commits into from
Oct 23, 2023
Merged

Fix Uncontrolled data used #13

merged 3 commits into from
Oct 23, 2023

Conversation

SlaVcE14
Copy link
Owner

fixes #12

@@ -19,6 +20,13 @@

public static String LoadDataFromFile(MainActivity mainActivity, Uri uri) {

if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
String path = uri.getPath();
Path normalized = java.nio.file.FileSystems.getDefault().getPath(path).normalize();

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
@SlaVcE14 SlaVcE14 merged commit 198e586 into dev Oct 23, 2023
1 of 2 checks passed
@SlaVcE14 SlaVcE14 deleted the Uncontrolled-data branch February 11, 2024 22:13
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.

1 participant