Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-4749

Fix error message formatting (possible SEGV) for prepare_transaction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT3.2.0, 4.1.11
    • Transactions
    • None
    • Storage Engines 2019-05-06

    Description

      If SESSION->prepare_transaction is called with a prepare_timestamp less than the previously set oldest timestamp, an error is returned (expected), but the error message does not fill the correct buffer with the oldest timestamp, so an uninitialized pointer is used in the message.

      This was noticed with Python3 testing of test_prepare05.py and test_prepare06.py, they give a SEGV.  Python2 is apparently kinder, and some garbage appears as part of the error message, which is not noticed by the test.

      Attachments

        Activity

          People

            donald.anderson@mongodb.com Donald Anderson
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: