Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-11316

Coverity analysis defect 138263: Argument cannot be negative

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: 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:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: