Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-16258

Audit all uses of strnlen

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.8.0-rc3
    • None
    • Internal Code
    • None
    • Fully Compatible

    Description

      Our version of strnlen returns a different value than the standard strnlen in the case where no NUL byte is found (-1 rather than maxsize). We need to audit all existing uses and verify which they are expecting. Additionally we should either rename it, remove it, or give it the standard behavior (and only on platforms that lack a real strnlen).

      Attachments

        Activity

          People

            mathias@mongodb.com Mathias Stearn
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: