Coverity analysis defect 138263: Argument cannot be negative

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None

      Argument cannot be negative

      The negative argument will be interpreted as a very large unsigned value. Negative value used as argument to a function expecting a positive value (for example, size of buffer or allocation)
      /test/utility/file.c:300: NEGATIVE_RETURNS 138263 Function "pread(rfd, buf, 262144UL, offset)" returns a negative number.
      /test/utility/file.c:300: NEGATIVE_RETURNS 138263 Assigning: "n" = "pread(rfd, buf, 262144UL, offset)".
      /test/utility/file.c:304: NEGATIVE_RETURNS 138263 "(size_t)n" is passed to a parameter that cannot be negative.

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: