Menu

#647 strtold leaks heap memory

v1.0 (example)
closed-fixed
niXman
None
5
2017-08-09
2017-08-08
David Macek
No

As per https://www.reddit.com/r/C_Programming/comments/6ryl30/memory_leak_in_function_strtold, strtold() leaks memory. The following program will crash:

#include <stdlib.h>    

int main(){
    while(strtold("123", NULL));
}

Reporting just because it seems no-one from the Reddit thread bothered to.

Discussion

  • niXman

    niXman - 2017-08-09
    • status: open --> closed-fixed
    • assigned_to: niXman
     

Log in to post a comment.

MongoDB Logo MongoDB