mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 22:00:31 -04:00
- Fix some annoying memory leekage bugs that tends to core dumps. PR: ports/101688 Submitted by: Stanislav Sedov <ssedov_AT_mbsd dot msk dot ru>
11 lines
434 B
C++
11 lines
434 B
C++
--- libicq2000-0.1/src/DirectClient.cpp.orig Wed Aug 9 10:52:04 2006
|
|
+++ libicq2000-0.1/src/DirectClient.cpp Wed Aug 9 10:53:26 2006
|
|
@@ -162,6 +162,8 @@
|
|
|
|
m_recv.setLittleEndian();
|
|
m_recv >> length;
|
|
+ if (length == 0)
|
|
+ return;
|
|
if (length > Incoming_Packet_Limit) throw ParseException("Received too long incoming packet");
|
|
if (m_recv.remains() < length) return; // waiting for more of the packet
|
|
|