mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-23 01:52:48 +03:00
encoding: Fix error code in asciiToUTF8
Use correct error code when invalid ASCII bytes are encountered. Found by OSS-Fuzz.
This commit is contained in:
@@ -197,7 +197,7 @@ asciiToUTF8(unsigned char* out, int *outlen,
|
|||||||
} else {
|
} else {
|
||||||
*outlen = out - outstart;
|
*outlen = out - outstart;
|
||||||
*inlen = processed - base;
|
*inlen = processed - base;
|
||||||
return(-1);
|
return(-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
processed = (const unsigned char*) in;
|
processed = (const unsigned char*) in;
|
||||||
|
Reference in New Issue
Block a user