File: popmsg_uidl_exploit.patch

package info (click to toggle)
qpopper 2.53-7
  • links: PTS
  • area: main
  • in suites: potato
  • size: 656 kB
  • ctags: 372
  • sloc: ansic: 5,020; makefile: 132; sh: 54
file content (20 lines) | stat: -rw-r--r-- 716 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- qpopper-2.53/pop_uidl.c.orig	Thu May 25 14:28:24 2000
+++ qpopper-2.53/pop_uidl.c	Thu May 25 14:52:59 2000
@@ -59,7 +59,7 @@
 
 	sprintf(buffer, "%d %s", msg_id, mp->uidl_str);
         if (nl = index(buffer, NEWLINE)) *nl = 0;
-	return (pop_msg (p,POP_SUCCESS, buffer));
+	return (pop_msg (p, POP_SUCCESS, "%s", buffer));
       }
     } else {
 	/* yes, we can do this */
@@ -149,7 +149,7 @@
 	sprintf(buffer, "%d %s", msg_id, mp->uidl_str);
         if (nl = index(buffer, NEWLINE)) *nl = 0;
 	sprintf(buffer, "%s %d %.128s", buffer, mp->length, from_hdr(p, mp));
-	return (pop_msg (p,POP_SUCCESS, buffer));
+	return (pop_msg (p,POP_SUCCESS, "%s", buffer));
       }
     } else {
 	/* yes, we can do this */