8348872: jabswitch.cpp: regEnable and regDeleteValue leak reallocated data buffer - #32236
8348872: jabswitch.cpp: regEnable and regDeleteValue leak reallocated data buffer#32236MBaesken wants to merge 1 commit into
Conversation
|
👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
|
linux-x64-hs-minimal / build - Build / test - seems to have an infrastructure issue 'Failed to resolve action download info. Error: Service Unavailable' - most likely unrelated. |
prrace
left a comment
There was a problem hiding this comment.
This looks OK to me but I want @azuev-java to review (and test) it.
| if (newStr != NULL) { | ||
| wsprintf(newStr, L"%s,%s", dataBuffer, STR_ACCESSBRIDGE); | ||
| RegSetValueEx(hKey, ACCESSIBILITY_CONFIG, 0, REG_SZ, (BYTE *)newStr, dataLength); | ||
| delete[] newStr; |
There was a problem hiding this comment.
It seems unlikely that windows takes ownership of this memory, so we should free it.
However given that jabswitch is very emphemeral as an app, leaks are not a big deal.
|
Lots of 'Failed to resolve action download info. Error: Service Unavailable' in the GHAs, seem to be unrelated . |
Hi Phil, thanks for the review ! Btw. speaking of missing RegCloseKey after RegOpenKeyEx/RegOpenKeyExA, should we add here too the RegCloseKey calls ? |
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/32236/head:pull/32236$ git checkout pull/32236Update a local copy of the PR:
$ git checkout pull/32236$ git pull https://git.openjdk.org/jdk.git pull/32236/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 32236View PR using the GUI difftool:
$ git pr show -t 32236Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/32236.diff
Using Webrev
Link to Webrev Comment