commit | 429d4ecaae5d61d591f279220125a583836fb84e | [log] [tgz] |
---|---|---|
author | Nick Wellnhofer <wellnhofer@aevum.de> | Sun Oct 20 14:22:20 2019 +0200 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Sun Oct 20 14:38:05 2019 +0200 |
tree | a5767b684737e7da55a58be13127fe8f7f3205c9 | |
parent | 390f05e7033fa8658f310dce9704f4f88e84b7fe [diff] |
Propagate memory errors in valuePush Currently, many memory allocation errors in xpath.c aren't propagated to the parser/evaluation context and for the most part ignored. Most XPath objects allocated via one of the New, Wrap or Copy functions end up being pushed on the stack, so adding a check in valuePush handles many cases without much effort. Also simplify the code a little and make sure to return -1 in case of error.