Bug 8313

Summary: danger or forgotten function
Product: Sisyphus Reporter: inger <inger>
Component: guile16Assignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2    
Version: unstable   
Hardware: all   
OS: Linux   

Description inger@altlinux.org 2005-10-21 16:28:35 MSD
There are danger or forgotten function in script.c with potential buffer overflow.
You should remove or rewrite it:
--
char *
scm_find_executable (const char *name)
{
  char tbuf[MAXPATHLEN];
....
 if ((fgetc (f) == '#') && (fgetc (f) == '!'))
    {
      while (1)
        switch (tbuf[i++] = fgetc (f))
          {
....

--