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

win32k: crash when taking a screenshot

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 0.3.15
    • Win32SS
    • None
    • 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
          serrox
        2. ros3.png
          36 kB
          serrox
        3. ros3.png
          36 kB
          serrox

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: