Code:  set_hunkmax (void)
 {
     if (!p_line)
	p_line = (char **) malloc (hunkmax * sizeof *p_line);
     if (!p_len)
	p_len = (size_t *) malloc (hunkmax * sizeof *p_len);
     if (!p_Char)
	p_Char = malloc (hunkmax * sizeof *p_Char);
 }

Vulnerability Type: DoS
CWE ID: CWE-399
Summary: GNU patch 2.7.2 and earlier allows remote attackers to cause a denial of service (memory consumption and segmentation fault) via a crafted diff file.
Commit Message: 