Commit 2caad39
committed
ext/xsl: handle xsltNewTransformContext allocation failure
xsltNewTransformContext can return NULL on libxslt-internal allocation
failure. The next line dereferences ctxt unconditionally to set
ctxt->_private, segfaulting on OOM. Bail through the existing out:
label, which already handles secPrefs/intern->doc cleanup.
xsltFreeTransformContext(NULL) is a documented no-op in libxslt.1 parent 171b722 commit 2caad39
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
353 | 356 | | |
354 | 357 | | |
355 | 358 | | |
| |||
0 commit comments