From be95b109fdd37e86b179bf63b15a647acc58a445 Mon Sep 17 00:00:00 2001 From: alwin Date: Tue, 23 Dec 2003 01:31:28 +0000 Subject: fix for an unsigned bug while sending data via mail stream --- (limited to 'noncore') diff --git a/noncore/net/mail/libetpanstuff/libetpan-0.32-mailstream_fix.patch b/noncore/net/mail/libetpanstuff/libetpan-0.32-mailstream_fix.patch new file mode 100644 index 0000000..e9fa44b --- a/dev/null +++ b/noncore/net/mail/libetpanstuff/libetpan-0.32-mailstream_fix.patch @@ -0,0 +1,12 @@ +diff -ru libetpan-0.32/tools/mailstream_helper.c libetpan-0.32_fixed/tools/mailstream_helper.c +--- libetpan-0.32/tools/mailstream_helper.c 2003-12-15 04:33:58.000000000 +0100 ++++ libetpan-0.32_fixed/tools/mailstream_helper.c 2003-12-23 02:28:20.000000000 +0100 +@@ -352,7 +352,7 @@ + current = message; + remaining = size; + +- while (remaining > 0) { ++ while (remaining > 0 && remaining<=size) { + ssize_t length; + + length = send_data_line(s, current, remaining); -- cgit v0.9.0.2