Home / Vulnerability Database / Java : Platform-specific file separator
Java

Java : Platform-specific file separator

Classification

Overview

Using hardcoded file separator leads to problems with application portability.

Different operating systems use different file separators. For example, Windows uses “\”, whereas UNIX-like operating system use “/”. If you intend to run the application on different platforms, the hardcoded file separator can change the application logic or cause a denial of service.

MEDIUM

DerScanner Severity Score

Do you want to fix Java : Platform-specific file separator in your application?

See also

Java

Java : Race condition

Java

Java : Text4Shell Vulnerability

Java

Java : JNI usage