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

minor bugs in WT tests - possible undefined behavior from ctype functions and wrong assertion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • WT10.0.1
    • WT10.0.1, 5.1.0-rc0
    • None
    • None
    • 0
    • Storage - Ra 2021-07-12

    Description

      Uses of ctype.h functions must pass the values 0 through 255 (or EOF) and not sign-extended negative values from signed char. Per standard practice, cast to unsigned char when calling.--

      Also, fix an assertion about the return value of puts() - it returns EOF on error, not zero.

      Attachments

        Activity

          People

            alex.cameron@mongodb.com Alex Cameron (Inactive)
            dholland+wt@sauclovia.org David Holland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: