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

KsLoadResource can leak memory on failure path

    XMLWordPrintable

    Details

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

      Operating System: ReactOS
      Platform: x86 Hardware

      Description

      KsLoadResource accesses a PE resource, allocates buffer and then copies the contents into the buffer. All is done inside an SEH block.
      An exception can happen before the allocation (searching for the resource data) and after it (copying the resource data).
      The exception handler does not free the buffer, if it was already allocated.

        Attachments

          Activity

            People

            • Assignee:
              j_anderw Johannes Anderwald
              Reporter:
              ThePhysicist Timo Kreuzer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: