Audit all uses of strnlen

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 2.8.0-rc3
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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).

            Assignee:
            Mathias Stearn
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: