Eggdev: [Bug 421] New: notes.mod invalid read

bugzilla-daemon at tsss.org bugzilla-daemon at tsss.org
Wed Nov 10 10:42:51 CST 2004


http://www.eggheads.org/bugzilla/show_bug.cgi?id=421

           Summary: notes.mod invalid read
           Product: Eggdrop 1.7
           Version: 1.7.0 CVS
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Modules
        AssignedTo: eggdev at eggheads.org
        ReportedBy: rush at winkey.oompah.org


looking at the source for notes.mod in 1.7 it appears to have the same problem
as 1.6 does


the functions that read the notes file all appear to have this problem

 while (!feof(f)) {
    fgets(s, 600, f);

then after that they do a strlen(s)

the problem is s is not null temrinated if the notes file is 0 length.

while (!feof(f) && fgets(s, 600, f)) {

seems to fix the problem for me



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Eggdev mailing list