1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-01 00:58:16 +03:00

fix unitinialized variable in not frequently used code bug #172182 Daniel

* encoding.c: fix unitinialized variable in not frequently used
  code bug #172182
Daniel
This commit is contained in:
Daniel Veillard 2005-03-31 08:43:44 +00:00
parent 0e460da346
commit 394902e0d2
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Mar 31 10:41:45 CEST 2005 Daniel Veillard <daniel@veillard.com>
* encoding.c: fix unitinialized variable in not frequently used
code bug #172182
Thu Mar 31 00:45:18 CEST 2005 Daniel Veillard <daniel@veillard.com>
* python/generator.py python/libxml.py: another patch from Brent

View File

@ -2332,7 +2332,7 @@ ISO8859xToUTF8(unsigned char* out, int *outlen,
unsigned char* outend;
const unsigned char* instart = in;
const unsigned char* inend;
const unsigned char* instop = inend;
const unsigned char* instop;
unsigned int c;
if ((out == NULL) || (outlen == NULL) || (inlen == NULL) ||
@ -2340,6 +2340,7 @@ ISO8859xToUTF8(unsigned char* out, int *outlen,
return(-1);
outend = out + *outlen;
inend = in + *inlen;
instop = inend;
c = *in;
while (in < inend && out < outend - 1) {
if (c >= 0x80) {