GNOME Bugzilla – Bug 760113
patch : Unreachable code correction in transform.c
Last modified: 2016-07-13 11:20:30 UTC
Created attachment 318200 [details] [review] Patch file Unreachable code at line no 692 File : transform.c Function : xsltAddChild Line no : 692 version : 1.1.28 In file transform.c, NULL check at line no 689 causing statement at line no 692 unreachable. Original source code : if ((cur == NULL) || (parent == NULL)) return(NULL); if (parent == NULL) { xmlFreeNode(cur); return(NULL); } Modified source code : if (cur == NULL) return(NULL); if (parent == NULL) { xmlFreeNode(cur); return(NULL); } Please find attached patch file(transform2.patch).
Fixed with the following commit: https://git.gnome.org/browse/libxslt/commit/?id=ca99e1d41f970d8499b3cb0faf36282c064cabfa