File: 59-dos-cache-update-2.dpatch

package info (click to toggle)
squid 2.6.5-6etch5
  • links: PTS
  • area: main
  • in suites: etch
  • size: 12,540 kB
  • ctags: 13,801
  • sloc: ansic: 105,278; sh: 6,083; makefile: 1,297; perl: 1,245; awk: 40
file content (26 lines) | stat: -rw-r--r-- 813 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /bin/sh /usr/share/dpatch/dpatch-run
## 59-dos-cache-update-2.dpatch by Devin Carraway <devin@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: CVE-2008-1612: Upstream correction to fix for CVE-2007-6239, which
## DP: introduced a new vulnerability in cache update reply handling.

@DPATCH@
--- squid/lib/Array.c	26 Nov 2007 11:06:12 -0000	1.8.2.1
+++ squid/lib/Array.c	9 Jan 2008 13:02:07 -0000	1.8.2.2
@@ -1,5 +1,5 @@
 /*
- * $Id: Array.c,v 1.8.2.1 2007/11/26 11:06:12 adrian Exp $
+ * $Id: Array.c,v 1.8.2.2 2008/01/09 13:02:07 adrian Exp $
  *
  * AUTHOR: Alex Rousskov
  *
@@ -142,7 +142,7 @@
 void
 arrayShrink(Array *a, int new_count)
 {
-	assert(new_count < a->capacity);
+	assert(new_count <= a->capacity);
 	assert(new_count >= 0);
 	a->count = new_count;
 }