Problem with string format in libxml.c file
The commit history of Libxml2 presents the following code snippet in the libxml.c file (Lines 1,597 - 1,612). I believe that this commit presents a weakness that, If format strings can be influenced by an attacker, they can be exploited. If an attacker can modify an externally-controlled format string, this can lead to buffer overflows, denial of service, or data representation problems.
Moreover, I performed a software testing strategy with respect to identify this vulnerability. We provide as input to the char *msg the value "%xtest" and the function libxml_buildMessage return the value"fc0c748ex", exposing a memory position.