Re: [FYI PATCH 5/5] util: open code virXMLNodeContentString to access the node object directly

2020-07-28 Thread Michal Privoznik
On 7/20/20 10:48 PM, Laine Stump wrote: (I am *NOT* advocating that we apply this patch. Just providing it for informational purposes, since we had previously discussed this possibility on the list) Since it's impossible to determine whether xmlNodeContent has returned a NULL due to OOM, or due

[FYI PATCH 5/5] util: open code virXMLNodeContentString to access the node object directly

2020-07-20 Thread Laine Stump
(I am *NOT* advocating that we apply this patch. Just providing it for informational purposes, since we had previously discussed this possibility on the list) Since it's impossible to determine whether xmlNodeContent has returned a NULL due to OOM, or due to badly formed / evil XML, this patch