File libproxy-CVE-2012-4504.patch of Package libproxy.openSUSE_12.1_Update
Index: libproxy/url.cpp
===================================================================
--- libproxy/url.cpp (revision 852)
+++ libproxy/url.cpp (revision 853)
@@ -474,9 +474,10 @@
// Add this chunk to our content length,
// ensuring that we aren't over our max size
content_length += chunk_length;
- if (content_length >= PAC_MAX_SIZE) break;
}
+ if (content_length >= PAC_MAX_SIZE) break;
+
while (recvd != content_length) {
int r = recv(sock, buffer + recvd, content_length - recvd, 0);
if (r < 0) break;