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

Fix error message formatting (possible SEGV) for prepare_transaction

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT3.2.0, 4.1.11
    • Component/s: Transactions
    • Labels:
      None
    • Sprint:
      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

            Assignee:
            donald.anderson Donald Anderson
            Reporter:
            donald.anderson Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: