Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-19580

platform: print_backtrace_to_buffer can overflow buffer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 4.5.0
    • 4.5.0
    • memcached
    • None
    • Untriaged
    • Yes

    Description

      The platform function print_backtrace_to_buffer doesn't correctly check for buffer being full when printing backtraces. As a consequence it can overwrite the buffer (and corrupt the stack).

      Note we only call print_backtrace_to_buffer as part of (fatal) error handling, so this isn't an expoit and and of itself, however it does mean we don't get very useful minidumps (as the stack has been trashed).

      (Note: regression introduced by http://review.couchbase.org/55856, only present in watson).

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              drigby Dave Rigby (Inactive)
              drigby Dave Rigby (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty