Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-26538

Incorrect error condition check for ReadFile (named pipes)

    XMLWordPrintable

Details

    Description

      in threadpool_winsockets.cc

            /* Do async read (named pipe) */
          if (ReadFile(m_handle, buf.buf, buf.len, 0, &m_overlapped))
            err= GetLastError();
      

      That should be "if (!ReadFile...)". ReadFile returns TRUE on success, FALSE on error

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            wlad Vladislav Vaintroub
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.