summaryrefslogtreecommitdiff
path: root/www/libwww/patches/patch-ar
blob: 50a58bbdca8a408752fc4cda39fd394200cb4014 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ar,v 1.1 2009/11/08 08:38:54 obache Exp $

CVE-2009-3720

--- modules/expat/xmltok/xmltok_impl.c.orig	2000-08-28 08:52:01.000000000 +0000
+++ modules/expat/xmltok/xmltok_impl.c
@@ -1753,7 +1753,7 @@ void PREFIX(updatePosition)(const ENCODI
 			    const char *end,
 			    POSITION *pos)
 {
-  while (ptr != end) {
+  while (ptr < end) {
     switch (BYTE_TYPE(enc, ptr)) {
 #define LEAD_CASE(n) \
     case BT_LEAD ## n: \