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

CID 1341427: BytesRead is uninitialized in DosReadCharacter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.4.0
    • Component/s: None
    • Labels:

      Description

      BytesRead is uninitialized and passed to DosReadFile. DosReadFile uses it in while(*BytesRead <Count), leading to incorrect evaluation of the loop condition.
      The patch initialized BytesRead to zero, as it is supposed to be updated inside the DosReadFile depending on the bytes read.

        Attachments

          Activity

            People

            • Assignee:
              hbelusca hbelusca
              Reporter:
              vicmarcal vicmarcal
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: