google / google-authenticator-libpam

Apache License 2.0
1.76k stars 281 forks source link

Memory Leak #149

Closed QiAnXinCodeSafe closed 4 years ago

QiAnXinCodeSafe commented 4 years ago

Memory is allocated https://github.com/google/google-authenticator-libpam/blob/bc1af869b17e24b98e14d2e53cf35365e6e55324/src/google-authenticator.c#L109

Potential leak of memory pointed to by 'buf ' https://github.com/google/google-authenticator-libpam/blob/bc1af869b17e24b98e14d2e53cf35365e6e55324/src/google-authenticator.c#L118

ThomasHabets commented 4 years ago

You can't really leak memory if you terminate the process. That's not how malloc works. This isn't SHM memory.

ThomasHabets commented 4 years ago

I see you're spamming other projects with incorrect reports too. Please stop wasting people's time.

Examples of bad reports: