Преглед на файлове

HPCC-16829 Valgrind reporting invalid memory access in roxie

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman преди 8 години
родител
ревизия
106ef1893d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      roxie/ccd/ccdserver.cpp

+ 1 - 1
roxie/ccd/ccdserver.cpp

@@ -2703,7 +2703,7 @@ public:
 
     virtual void stopSink(unsigned outputIdx)
     {
-        if (!stopped[outputIdx])
+        if (outputIdx < numOutputs && !stopped[outputIdx])  // Implicit dependencies on DiskWrite activities do not count as outputs
         {
             stopped[outputIdx] = true;
             for (unsigned s = 0; s < numOutputs; s++)