RFR: 8337408: Use GetTempPath2 API instead of GetTempPath [v2]

Dhamoder Nalla dhanalla at openjdk.org
Thu Oct 3 02:23:35 UTC 2024


On Thu, 26 Sep 2024 16:17:49 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> Dhamoder Nalla has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   fix missing code
>
> I don't have a suggestion for maintaining compatibility other than not making the change.

Thank you @plummercj, @kevinjwalls,
We appreciate your concerns regarding compatibility. However, we implemented this change to enhance security. 
According to the documentation at https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettemppatha#remarks, it is recommended to use GetTempPath2. If you believe that compatibility is more critical than the security improvements we've made, we are willing to close the pull request.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20600#issuecomment-2390368801


More information about the core-libs-dev mailing list