Skip to content

String leak (userAgent) #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hrydgard opened this issue Oct 4, 2023 · 0 comments
Open

String leak (userAgent) #28

hrydgard opened this issue Oct 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@hrydgard
Copy link
Contributor

hrydgard commented Oct 4, 2023

At least on Windows, naett seems to leak some strings set by stringSetter.

Report after running (it just leaks the user agent string):

C:\dev\ppsspp\ext\naett\naett.c(154) : {4247868} normal block at 0x0000021496CEE120, 31 bytes long.
 Data: <PPSSPP/v1.16.5-1> 50 50 53 53 50 50 2F 76 31 2E 31 36 2E 35 2D 31 
C:\dev\ppsspp\ext\naett\naett.c(154) : {4243564} normal block at 0x0000021496CE9E00, 31 bytes long.
 Data: <PPSSPP/v1.16.5-1> 50 50 53 53 50 50 2F 76 31 2E 31 36 2E 35 2D 31 
C:\dev\ppsspp\ext\naett\naett.c(154) : {4241788} normal block at 0x0000021496CEE1E0, 31 bytes long.
 Data: <PPSSPP/v1.16.5-1> 50 50 53 53 50 50 2F 76 31 2E 31 36 2E 35 2D 31 
C:\dev\ppsspp\ext\naett\naett.c(154) : {4067325} normal block at 0x0000021496CE8D80, 31 bytes long.
 Data: <PPSSPP/v1.16.5-1> 50 50 53 53 50 50 2F 76 31 2E 31 36 2E 35 2D 31 

naett.c(154) is simply char* stringCopy = strdup(param->string);.

@erkkah erkkah added the bug Something isn't working label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants