Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
誰かがVeraコードキャニングエラーの下のJavaコーディングソリューションを教えてもらえますか?
ファイルを作成し、ファイルの場所を引数として渡します。
File file1=new File(filePath); **CWE-73: External Control of File Name or Path**
次のものを使用できます。
Validator validator = ESAPI.validator(); validator.getValidDirectoryPath(..) // to validate the directory path validator.getValidFileName(...) // to validate the file name
それらを使用してファイルを作成します