...
Code Block | ||
---|---|---|
| ||
int main(int argc, char *argv[]) { char *buff; buff = malloc(BUFSIZE); if (!buff) { /* handle error condition */ } /* ... */ free(buff); /* ... */ strncpy(buff, argv[1], BUFSIZE-1); } |
...
Code Block | ||
---|---|---|
| ||
int main(int argc, char *argv[]) { char *buff; buff = malloc(BUFSIZE); if (!buff) { /* handle error condition */ } /* ... */ strncpy(buff, argv[1], BUFSIZE-1); /* ... */ free(buff); } |
Risk Assessment
...