File fetchmail-CVE-2010-0562.patch of Package fetchmail
Index: fetchmail-6.3.11/sdump.c
===================================================================
--- fetchmail-6.3.11.orig/sdump.c 2009-08-05 18:50:35.000000000 +0200
+++ fetchmail-6.3.11/sdump.c 2010-02-15 15:31:38.000000000 +0100
@@ -36,7 +36,7 @@ char *sdump(const char *in, size_t len)
if (isprint((unsigned char)in[i])) {
*(oi++) = in[i];
} else {
- oi += sprintf(oi, "\\x%02X", in[i]);
+ oi += sprintf(oi, "\\x%02X", (unsigned char)in[i]);
}
}
*oi = '\0';