Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Potential security issue in src/tool_paramhlp.c: Unchecked return from initialization function #5417
What is a Conditionally Uninitialized Variable? The return value of a function that is potentially used to initialize a local variable is not checked. Therefore, reading the local variable may result in undefined behavior.
1 instance of this defect were found in the following locations:
char *endptr; long num; errno = 0; num = strtol(str, &endptr, 10); <------ HERE if(errno == ERANGE) return PARAM_NUMBER_TOO_LARGE;