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

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              David Holland
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: