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

Fix error message formatting (possible SEGV) for prepare_transaction

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT3.2.0, 4.1.11
    • Affects Version/s: None
    • Component/s: Transactions
    • None
    • Storage Engines 2019-05-06

      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.

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

              Created:
              Updated:
              Resolved: