We just have to check for empty vector found of Selections or GumboNode *. The code above will not be the interface we employ, instead we will add a find_by_ selector routine to our existing GumboInterface routine and remove use of CDocument and other query wrapper code completely.
Of course if the segfault happens in CParser, we would need to harden it.
Last edited by KevinH; 01-02-2021 at 04:49 PM.
|