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

user32!RegisterClassExA accessing class name without NULL check

    XMLWordPrintable

Details

    Description

      Software tested: Code CrearVentana.c Binary CrearVentana.exe

      ReactOS Master: 0.4.15-dev-6024-g27c0f0e-x86-gcc-lin-dbg
      CD: Bootcd
      Compiler: GCC Only
      Arch: 32 bits.

      Description:
      I will explain a bug now that I don't know if deserves a ticket. Let's say, I'm not sure where is the failure itself.
      I have a binary compiled with the ReactOS Build Environment 2.2.1 (including the bin folder in path) with a "faulty code" (compilable but pointless, the window lpsz class is defined as NULL). It must open as a window with a MB_ERROR as it does under Wine or Windows XP. I know it's a mistake.


      But it doesn't, the binary starts under ReactOS, but in the case of RosBE compiled it shows me a memory read error:

      Curiously, if I compile the software using CodeBlocks with the MinGW compiler (available under RAPPS), the issue dissapears (because it uses another version of gcc or g++ that workaround the issue?).

      Anyway the previous binary (attached too), must execute as Windows XP, isn't it?

      Steps to reproduce:
      1. Install RosBE under ReactOS.
      2. Compile the binary using RosBE with "gcc -o CrearVentana.exe CrearVentana.c"
      3. Execute the CrearVentana.exe

      Log: CrearVentanaBug2.log

      Attachments

        1. CrearVentana.c
          2 kB
        2. CrearVentana.exe
          36 kB
        3. CrearVentana(codeblocknotfail).exe
          32 kB
        4. CrearVentanaBug2.log
          6 kB
        5. HbeluscaPR CrearVentana.log
          6 kB
        6. image-2023-05-18-20-06-18-897.png
          image-2023-05-18-20-06-18-897.png
          30 kB
        7. image-2023-05-18-20-12-48-721.png
          image-2023-05-18-20-12-48-721.png
          16 kB
        8. image-2023-05-18-20-13-35-788.png
          image-2023-05-18-20-13-35-788.png
          59 kB
        9. image-2023-05-18-21-21-50-599.png
          image-2023-05-18-21-21-50-599.png
          34 kB
        10. user32_tested.dll
          1.51 MB
        11. windbg_CrearVentana_codeblocknofail.png
          windbg_CrearVentana_codeblocknofail.png
          59 kB
        12. windbg_CrearVentana.png
          windbg_CrearVentana.png
          53 kB

        Activity

          People

            hbelusca hbelusca
            julenuri julenuri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: