Eggdev: [Bug 420] New: invalid read of memory

bugzilla-daemon at tsss.org bugzilla-daemon at tsss.org
Wed Nov 10 10:32:18 CST 2004


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

           Summary: invalid read of memory
           Product: Eggdrop 1.6
           Version: 1.6.18 CVS
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Module: notes.mod
        AssignedTo: eggdev at eggheads.org
        ReportedBy: rush at winkey.oompah.org


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