Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP3:Update
postgresql-jdbc
fix-createTempFile-vulnerability-CVE-2022-41946...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-createTempFile-vulnerability-CVE-2022-41946.patch of Package postgresql-jdbc
Index: postgresql-42.2.25-jdbc-src/src/main/java/org/postgresql/util/StreamWrapper.java =================================================================== --- postgresql-42.2.25-jdbc-src.orig/src/main/java/org/postgresql/util/StreamWrapper.java +++ postgresql-42.2.25-jdbc-src/src/main/java/org/postgresql/util/StreamWrapper.java @@ -17,6 +17,7 @@ import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; +import java.nio.file.Files; /** * Wrapper around a length-limited InputStream. @@ -51,7 +52,7 @@ public class StreamWrapper { if (memoryLength == -1) { final int diskLength; - final File tempFile = File.createTempFile(TEMP_FILE_PREFIX, null); + final File tempFile = Files.createTempFile(TEMP_FILE_PREFIX, null).toFile(); FileOutputStream diskOutputStream = new FileOutputStream(tempFile); diskOutputStream.write(rawData); try {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor