Skip to content

add eightball#1

Open
rsenden wants to merge 5 commits intomainfrom
pr-test
Open

add eightball#1
rsenden wants to merge 5 commits intomainfrom
pr-test

Conversation

@rsenden
Copy link
Contributor

@rsenden rsenden commented Feb 15, 2026

No description provided.

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

} catch (Exception e) {
System.out.println("Invalid input.");
}
new FileReader(filename).read(buffer);

Check failure

Code scanning / Fortify SCA

Path Manipulation High

Attackers can control the file system path argument to FileReader() at EightBall.java line 14, which allows them to access or modify otherwise protected files. More information
} catch (Exception e) {
System.out.println("Invalid input.");
}
new FileReader(filename).read(buffer);

Check failure

Code scanning / Fortify SCA

Unreleased Resource: Streams High

The function main() in EightBall.java sometimes fails to release a system resource allocated by FileReader() on line 14. More information
import java.io.FileReader;

public class EightBall {
public static void main(String args[]) throws Exception {

Check notice

Code scanning / Fortify SCA

J2EE Bad Practices: Leftover Debug Code Low

The class EightBall contains debug code, which can create unintended entry points in a deployed web application. More information
} catch (Exception e) {
System.out.println("Invalid input.");
}
new FileReader(filename).read(buffer);

Check notice

Code scanning / Fortify SCA

Unchecked Return Value Low

The method main() in EightBall.java ignores the value returned by read() on line 14, which could cause the program to overlook unexpected states and conditions. More information
} catch (Exception e) {
System.out.println("Invalid input.");
}
new FileReader(filename).read(buffer);

Check notice

Code scanning / Fortify SCA

Path Manipulation Low

Attackers can control the file system path argument to FileReader() at EightBall.java line 14, which allows them to access or modify otherwise protected files. More information
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