GNOME Bugzilla – Bug 353700
off-by-one error in xmlSchemaGetCanonValue()
Last modified: 2006-10-11 11:55:24 UTC
This case from xmlSchemaGetCanonValue() mismatches snprintf length restriction and buffer size. case XML_SCHEMAS_GMONTH: { /* TODO: Unclear in XML Schema 1.0 */ /* TODO: What to do with the timezone? */ *retValue = xmlMalloc(5); snprintf((char *) *retValue, 6, "--%02u", val->value.date.mon); } break;
Okay fixed, more worrying was the fact that the return value for many xmlMalloc calls were not tested, fixed too. thanks for raising the problem ! Daniel