From 5158ee903be463c189a80715f92235ceb04871a7 Mon Sep 17 00:00:00 2001
From: Arseny Kapoulkine
Date: Tue, 14 Apr 2015 19:19:13 -0700
Subject: Fix xpath_node_set assignment to provide strong exception guarantee
Since the type of the set was updated before assignment, assigning in
out-of-memory condition could change the type to not match the content.
---
tests/test_xpath_api.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
(limited to 'tests')
diff --git a/tests/test_xpath_api.cpp b/tests/test_xpath_api.cpp
index df078a0..4fc5be3 100644
--- a/tests/test_xpath_api.cpp
+++ b/tests/test_xpath_api.cpp
@@ -381,15 +381,20 @@ TEST_XML(xpath_api_node_set_assign_out_of_memory_preserve, "")
--
cgit v1.2.3