Bug 8313 - danger or forgotten function
: danger or forgotten function
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/guile16)
: unstable
: all Linux
: P2 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2005-10-21 16:28 by
Modified: 2008-04-25 16:53 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-10-21 16:28:35
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))
          {
....

--