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

BSOD when ScaleWindowExtEx() with invalid parameters is called

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None

    Description

      Attention: the problem also affects Windows 2000 and Windows XP, including their server versions.

      #include <windows.h>
      int main() {
          HDC dc = CreateCompatibleDC(NULL);
          SetLayout(dc, LAYOUT_RTL);
          ScaleWindowExtEx(dc, -2147483647 - 1, -1, 1, 1, NULL);
      }

      Executable with the code (built with VC140_xp toolchain, runtime is embedded) above is in the attachments.

      XP SP3 case:

      MiniDumper 1.8
       
      Dump: Mini040823-03.dmp (08.04.2023 02:33:33)
      Code: 0x7F - UNEXPECTED_KERNEL_MODE_TRAP
      Process: minusonezero.ex, probably caused by: win32k.sys
      FAILURE_BUCKET_ID: 0x7f_0_win32k!GreScaleWindowExtEx+6e
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            SigmaTel71 SigmaTel71
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: