From: Dmitry Kurochkin Date: Mon, 25 Apr 2011 16:04:59 +0000 (+0400) Subject: Fix queue index in IpcIoFile debug message. X-Git-Tag: take07~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e9bdc47db85af0a0af61a7de1d2a6b2f47c64ea2;p=thirdparty%2Fsquid.git Fix queue index in IpcIoFile debug message. This could lead to out of bounds array access and segfault. --- diff --git a/src/DiskIO/IpcIo/IpcIoFile.cc b/src/DiskIO/IpcIo/IpcIoFile.cc index 16009d481c..ee323e2c31 100644 --- a/src/DiskIO/IpcIo/IpcIoFile.cc +++ b/src/DiskIO/IpcIo/IpcIoFile.cc @@ -633,7 +633,7 @@ IpcIoFile::DiskerHandleRequest(const int workerId, IpcIoMsg &ipcIo) else // ipcIo.command == IpcIo::cmdWrite diskerWrite(ipcIo); - debugs(47, 7, HERE << "pushing " << SipcIo(workerId, ipcIo, KidIdentifier) << " at " << diskerQueue->biQueues[workerId]->pushQueue->size()); + debugs(47, 7, HERE << "pushing " << SipcIo(workerId, ipcIo, KidIdentifier) << " at " << diskerQueue->biQueues[workerId-1]->pushQueue->size()); try { if (diskerQueue->push(workerId, ipcIo))