-
Notifications
You must be signed in to change notification settings - Fork 0
Change #32
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
base: release/MellowNinja81
Are you sure you want to change the base?
Change #32
Conversation
CodeSonar analysisAnalysis results are available on the CodeSonar hub
Generated by CodeSonar |
| new_len = strlen(dest) + strlen(s) + 1; | ||
| new_loc = (char *) malloc(new_len); | ||
| strcpy(new_loc, dest); | ||
| if (!new_loc) return dest; /* Can't do it, throw away the data */ |
Check warning
Code scanning / CodeSonar
Unreachable Data Flow
| new_len = strlen(dest) + strlen(s) + 1; | ||
| new_loc = (char *) malloc(new_len); | ||
| strcpy(new_loc, dest); | ||
| if (!new_loc) return dest; /* Can't do it, throw away the data */ |
Check warning
Code scanning / CodeSonar
Redundant Condition
| } | ||
| new_len = strlen(dest) + strlen(s) + 1; | ||
| new_loc = (char *) malloc(new_len); | ||
| strcpy(new_loc, dest); |
Check failure
Code scanning / CodeSonar
Null Pointer Dereference
| we always allocate for enough space before appending. */ | ||
| if (!dest) { | ||
| new_loc = (char *) malloc(strlen(s))+1; | ||
| strcpy(new_loc, s); |
Check failure
Code scanning / CodeSonar
Null Pointer Dereference
| we always allocate for enough space before appending. */ | ||
| if (!dest) { | ||
| new_loc = (char *) malloc(strlen(s))+1; | ||
| strcpy(new_loc, s); |
Check failure
Code scanning / CodeSonar
Buffer Overrun
No description provided.