os::is_first_C_frame(frame*) crashes on invalid link access

XMLWordPrintable

    • b15
    • x86

        os::is_first_C_frame(frame*) checks whether the current frame
        cannot be safely unwound. It checks for example whether the previous
        frame pointer is not null. For this check it uses the frame::link()
        method which, on platforms like x86, dereferences a location on the stack.
        Retrieving this link may crash if the caller frame is not available.

        Furthermore, all address checks in os::is_first_C_frame(frame*) only
        check for non null, not checking whether the pointers pointing into
        the stack really point into it.

              Assignee:
              Johannes Bechberger
              Reporter:
              Martin Doerr
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: