~ubuntu-branches/ubuntu/quantal/maradns/quantal

« back to all changes in this revision

Viewing changes to update/2.0.02/maradns-1.4.05-CVE-2011-0520.patch

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2012-01-12 23:35:38 UTC
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: package-import@ubuntu.com-20120112233538-5jkaqrh9nbqtf1ey
Tags: upstream-2.0.04+really1.4.09
ImportĀ upstreamĀ versionĀ 2.0.04+really1.4.09

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- maradns-1.4.05/dns/Compress.c       2010-07-31 01:17:08.000000000 -0600
2
 
+++ maradns-1.4.06/dns/Compress.c       2011-01-28 18:28:46.000000000 -0700
3
 
@@ -22,7 +22,7 @@
4
 
 #include "functions_dns.h"
5
 
 
6
 
 /* Maximum allowed number of dlabel points */
7
 
-#define MAX_DLABEL_POINTS 512
8
 
+#define MAX_DLABEL_POINTS 160
9
 
 
10
 
 /* Maximum allowed length of compressed string; this is 4096 for TCP
11
 
  * packets */
12
 
@@ -87,7 +87,8 @@
13
 
         js_dealloc(new);
14
 
         return 0;
15
 
         }
16
 
-    if((new->dlabel_points = js_alloc(MAX_DLABEL_POINTS + 3,1)) == 0) {
17
 
+    if((new->dlabel_points = js_alloc(MAX_DLABEL_POINTS + 3,sizeof(int))) 
18
 
+               == 0) {
19
 
         js_destroy(new->compressed);
20
 
         js_dealloc(new);
21
 
         return 0;