This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1000226] New: Off-by-one error in iomem.c


http://bugzilla.ecoscentric.com/show_bug.cgi?id=1000226

           Summary: Off-by-one error in iomem.c
           Product: eCos
           Version: CVS
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: normal
         Component: RedBoot
        AssignedTo: gary@mlbassoc.com
        ReportedBy: tiktin@advancedrelay.com
         QAContact: ecos-bugs@sources.redhat.com


Line 142 of packages/redboot/current/src/iomem.c contains an off-b-by-one error:

-   if (!scan_opts(argc, argv, 1, opts, 5, 0, 0, "")) {
+   if (!scan_opts(argc, argv, 1, opts, 4, 0, 0, "")) {

The opts array has only 4 members.  This code causes stack corruption when the
iopeek RedBoot command is executed.

-- 
Configure bugmail: http://bugzilla.ecoscentric.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]