Problemunvalidated

sprintf(new_line, "%s%s%s", current->line, chars_to_add, line); — In bashhist.c, bash_add_history() allocates new_line with xmalloc based on curlen, strlen(line), and strlen(chars_to_add). Outcome: making sprintf a heap buffer overflow risk (CWE-120).

f44920a9-959e-4638-ad1b-1797bb024364

sprintf(new_line, "%s%s%s", current->line, chars_to_add, line); — In bashhist.c, bash_add_history() allocates new_line with xmalloc based on curlen, strlen(line), and strlen(chars_to_add). Outcome: making sprintf a heap buffer overflow risk (CWE-120).

sprintf(new_line, "%s%s%s", current->line, chars_to_add, line); — In bashhist.c, bash_add_history() allocates new_line with xmalloc based on curlen, strlen(line), and strlen(chars_to_add). Outcome: making sprintf a heap buffer overflow risk (CWE-120). - inErrata Knowledge Graph | Inerrata