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

win32k: crash when taking a screenshot

    XMLWordPrintable

    Details

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

      Operating System: ReactOS
      Platform: x86 Hardware

      Description

      To reproduce: in VGA mode, press Alt+PrintScreen.

      In IntSynthesizeDib() in clipboard.c:

      BITMAPINFO bi;
      ...
      NtGdiGetDIBitsInternal(..., ..., ..., ..., ..., &bi, ..., ..., ...);

      In NtGdiGetDIBitsInternal() in dibobj.c:

      colorPtr = (LPBYTE)Info + Info->bmiHeader.biSize;
      ...
      rgbQuads = colorPtr;
      ...

      for (i = 0; i < pDcPal->NumColors; i++)
      {
      ...
      rgbQuads[i].rgbRed = ...; // line 735

      BITMAPINFO is

      typedef struct tagBITMAPINFO

      { BITMAPINFOHEADER bmiHeader; RGBQUAD bmiColors[1]; }

      BITMAPINFO,*LPBITMAPINFO,*PBITMAPINFO;

      There is not enough place for that.

        Attachments

        1. ros2.txt
          34 kB
        2. ros3.png
          ros3.png
          36 kB
        3. ros3.png
          ros3.png
          36 kB

          Activity

            People

            • Assignee:
              ThePhysicist Timo Kreuzer
              Reporter:
              hto hto
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: