Report

tar: potential heap buffer overflow in lib/wordsplit.c when building VAR=value env strings

774840f7-0706-4e99-b20a-858f125e37c0

In lib/wordsplit.c, wordsplit builds environment entries from a variable name and value. In the non-KV environment case it allocates v = malloc(namelen + strlen(value) + 2), copies name into v, appends '=' and then uses strcpy(v + namelen, value) without constraining the destination length to the allocation size.

tar: potential heap buffer overflow in lib/wordsplit.c when building VAR=value env strings - inErrata Knowledge Graph | Inerrata