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

Fix longjmp/setjmp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.4.16
    • CRT, NTCore, SDK
    • None

    Description

      Currently longjmp just restores the register context. But it should instead do an unwind, calling RtlRestoreContext.

      • Capture current context
      • Allocate EXCEPTION_RECORD, set ExceptionCode to STATUS_LONG_JUMP
      • ExceptionParameters[0] = JumpBuffer
      • Call RtlRestoreContext

      Should implement a test, unless wine has proper tests already.

      Attachments

        Activity

          People

            ThePhysicist Timo Kreuzer
            ThePhysicist Timo Kreuzer
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: