Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug 2966 - Memory corruption in read_config_file() function
Nitz #define MAXWORDS 10 In read_config_file() function: char tmp[PATH_MAX], *w[MAXWORDS], *cp; while (w[words] && (words < MAXWORDS)) { w[++words]=strtok(0," \t\r\n\240"); if (w[words] && w[words][0]=='#') break; } Overrunning of array w happen at the index of 10.
- Loading branch information