[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdecore/localization
From: Isaac Clerencia <isaac () warp ! es>
Date: 2007-07-01 13:00:25
Message-ID: 1183294825.995603.2964.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 682043 by isaac:
Fix bug in encoding detection.
The ptr is already updated while writting the tag in tmp[], so
we shouldn't increasing the ptr when we detect a "meta" tag.
It made konqueror crash when the data ended in "<META " because
the ptr got past pEnd and thus the while condition (ptr != pEnd)
was always true.
M +0 -1 kencodingdetector.cpp
--- trunk/KDE/kdelibs/kdecore/localization/kencodingdetector.cpp #682042:682043
@@ -995,7 +995,6 @@
if (tmp[0]=='m'&&tmp[1]=='e'&&tmp[2]=='t'&&tmp[3]=='a')
{
// found a meta tag...
- ptr += 3;
const char* end = ptr;
while(*end != '>' && *end != '\0' && end<pEnd)
end++;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic