[xml] ping //Re: [PATCH] xmlschemastypes.c: xmlSchemaGetFacetValueAsULong add check "facet->val"

2020-11-30 Thread Xiaoming Ni
ping On 2020/11/24 14:55, Xiaoming Ni wrote: The xmlSchemaGetFacetValueAsUlong() API is an external API. The validity of external input parameters must be strictly verified. Before accessing "facet->val->value", we need check whether "facet->val" is a null po

[xml] ping //Re: [PATCH] encoding: fix memleak in xmlRegisterCharEncodingHandler()

2020-11-30 Thread Xiaoming Ni
ping On 2020/11/24 14:55, Xiaoming Ni wrote: The return type of xmlRegisterCharEncodingHandler() is void. The invoker cannot determine whether xmlRegisterCharEncodingHandler() is executed successfully. when nbCharEncodingHandler >= MAX_ENCODING_HANDLERS, the "handler" is not added

Re: [xml] ping //Re: [PATCH] xmlschemastypes.c: xmlSchemaGetFacetValueAsULong add check "facet->val"

2020-12-06 Thread Xiaoming Ni
On 2020/12/7 0:42, Nick Wellnhofer wrote: On 01/12/2020 08:05, Xiaoming Ni wrote: ping Your previous email didn't make it to the mailing list. On 2020/11/24 14:55, Xiaoming Ni wrote: The xmlSchemaGetFacetValueAsUlong() API is an external API. The validity of external input parameters

[xml] [PATCH] xmlschemastypes.c: xmlSchemaGetFacetValueAsULong add, check "facet->val"

2020-12-07 Thread Xiaoming Ni
The xmlSchemaGetFacetValueAsUlong() API is an external API. The validity of external input parameters must be strictly verified. Before accessing "facet->val->value", we need check whether "facet->val" is a null pointer. Signed-off-by: wuqing Signed-off-by: Xiaomi

[xml] [PATCH] encoding: fix memleak in xmlRegisterCharEncodingHandler()

2020-12-07 Thread Xiaoming Ni
the memory of "handler" cannot be managed and released: memory leakage. so add "xmlfree(handler)" to fix memory leakage on the failure branch of xmlRegisterCharEncodingHandler(). Reported-by: wuqing Signed-off-by: Xiaoming Ni --- encoding.c | 13 +++-- 1 file chan