]> git.pld-linux.org Git - packages/centericq.git/blobdiff - centericq-icq-short-read.patch
- added
[packages/centericq.git] / centericq-icq-short-read.patch
diff --git a/centericq-icq-short-read.patch b/centericq-icq-short-read.patch
new file mode 100644 (file)
index 0000000..7d1d700
--- /dev/null
@@ -0,0 +1,10 @@
+--- centericq-4.21.0.orig/libicq2000-0.1/src/DirectClient.cpp
++++ centericq-4.21.0/libicq2000-0.1/src/DirectClient.cpp
+@@ -162,6 +162,7 @@
+       m_recv.setLittleEndian();
+       m_recv >> length;
++      if (length == 0) return; // short read, toss it back (nothing to do)
+       if (length > Incoming_Packet_Limit) throw ParseException("Received too long incoming packet");
+       if (m_recv.remains() < length) return; // waiting for more of the packet
This page took 0.038384 seconds and 4 git commands to generate.