[libxml2] xpath: Lower XPath recursion limit on Windows
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] xpath: Lower XPath recursion limit on Windows
- Date: Wed, 7 Sep 2022 20:44:06 +0000 (UTC)
commit 27c8ba605495e326628ee1537dcb953249c2d297
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Wed Sep 7 22:34:42 2022 +0200
xpath: Lower XPath recursion limit on Windows
xpath.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/xpath.c b/xpath.c
index 54196fc1..72c9c127 100644
--- a/xpath.c
+++ b/xpath.c
@@ -130,6 +130,9 @@
*/
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
#define XPATH_MAX_RECURSION_DEPTH 500
+#elif defined(_WIN32)
+/* Windows typically limits stack size to 1MB. */
+#define XPATH_MAX_RECURSION_DEPTH 1000
#else
#define XPATH_MAX_RECURSION_DEPTH 5000
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]