Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-7919

CUSBQueue::GetIntervalIndex bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.3.17
    • Drivers: USB
    • None

    Description

      There isn't any valid "Interval" param for CUSBQueue::GetIntervalIndex(UCHAR Interval) which returns a value of 10 as "IntervalIndex" since "Interval" range is [1,255] due to UCHAR restrictions.

      CUSBQUEUE::GetIntervalIndex: http://git.reactos.org/?p=reactos.git;a=blob;f=reactos/drivers/usb/usbehci/usb_queue.cpp;hb=a6eecd921d17e58321f72ef034c70c6a5b5c50b4#l374

      PS: The returned value of GetIntervalIndex is used to access an element of the following array via m_InterruptQueueHeads[IntervalIndex];

      Which is defined as an m_InterruptQueueHeads[EHCI_INTERRUPT_ENTRIES_COUNT]; aka m_InterruptQueueHeads[10+1].

      Attachments

        Activity

          People

            ThFabba ThFabba
            vicmarcal vicmarcal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: