You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
there are several places in the code where it could potentially happen that the NULL pointer result from previous tests is attempted to be derefenced.
Code like this:
s->data = malloc(i + 1);
memset(s->data, 0, i + 1);
Should become like this:
s->data = malloc(i + 1);
if (NULL == s->data)
{
return -1;
}
memset(s->data, 0, i + 1);
Hello,
there are several places in the code where it could potentially happen that the NULL pointer result from previous tests is attempted to be derefenced.
Code like this:
Should become like this:
Please consider to accept the pull request:
#19
Best regards
Michal Ambroz
The text was updated successfully, but these errors were encountered: