Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-7292 cppcheck checks of ReactOS code
  3. CORE-7295

notepad: Function that relies on trailing null might have been called with non null terminated string

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • Major
    • 0.4.0
    • Applications
    • None

    Description

      CPPCHECK: base\applications\notepad\main.c 518 error Dangerous usage of 'buf' (strncpy doesn't always null-terminate it).

      here strncpy is used to copy a string and later strcat is used on it, which relies on the source string being null terminated.

      Attachments

        Activity

          People

            bug zilla Bug Zilla
            encoded encoded
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: