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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.4.0
    • Component/s: Applications
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: