diff options
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r-- | cpp/src/Ice/ThreadPool.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp index a2bd4415d25..70ff78e3da0 100644 --- a/cpp/src/Ice/ThreadPool.cpp +++ b/cpp/src/Ice/ThreadPool.cpp @@ -520,6 +520,10 @@ IceInternal::ThreadPool::read(const EventHandlerPtr& handler) stream.read(messageType); Int size; stream.read(size); + if (size < headerSize) + { + throw IllegalMessageSizeException(__FILE__, __LINE__); + } if (size > 1024 * 1024) // TODO: configurable { throw MemoryLimitException(__FILE__, __LINE__); |