Add early return from file open in live restore

XMLWordPrintableJSON

    • Storage Engines
    • StorEng - 2024-12-24
    • 3

      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)
      /src/live_restore/live_restore_fs.c:765: NEGATIVE_RETURNS 163858 Variable "fd" tests negative.
      /src/live_restore/live_restore_fs.c:802: NEGATIVE_RETURNS 163858 "fd" is passed to a parameter that cannot be negative.

              Assignee:
              Sean Watt
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: