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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • WT10.0.1, 5.1.0-rc0
    • Affects Version/s: WT10.0.1
    • Component/s: None
    • Labels:
      None
    • 0
    • Storage - Ra 2021-07-12

      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.

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

              Created:
              Updated:
              Resolved: