[LIBTIRPC] Fix CVE-2018-14621 by backporting its fix
authorPierre Schweitzer <pierre@reactos.org>
Sat, 1 Dec 2018 11:15:31 +0000 (12:15 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 1 Dec 2018 11:16:41 +0000 (12:16 +0100)
CORE-15407

dll/3rdparty/libtirpc/src/svc_vc.c

index 2ccbe0e..47757fe 100644 (file)
@@ -324,6 +324,7 @@ again:
            &len)) == SOCKET_ERROR) {
                if (errno == EINTR)
                        goto again;
+#ifndef __REACTOS__ // CVE-2018-14621
                /*
                 * Clean out the most idle file descriptor when we're
                 * running out.
@@ -333,6 +334,7 @@ again:
                        __svc_clean_idle(&cleanfds, 0, FALSE);
                        goto again;
                }
+#endif
                return (FALSE);
        }
        /*