BIND 10 trac2887, updated. 23af78de3f2162aa27920e0ccc2784d76e0def8d [2887] catch all exceptions in RRset_addRdata.
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Apr 8 21:26:23 UTC 2013
The branch, trac2887 has been updated
via 23af78de3f2162aa27920e0ccc2784d76e0def8d (commit)
from 22eb335a0216d642194450947b28ad2ac3f771f0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 23af78de3f2162aa27920e0ccc2784d76e0def8d
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Mon Apr 8 14:25:37 2013 -0700
[2887] catch all exceptions in RRset_addRdata.
this is necessary anyway, but in particular helps avoid ugly crash
due to buggy Python code on FreeBSD 9.1.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/python/rrset_python.cc | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/python/rrset_python.cc b/src/lib/dns/python/rrset_python.cc
index 2992522..dc2af22 100644
--- a/src/lib/dns/python/rrset_python.cc
+++ b/src/lib/dns/python/rrset_python.cc
@@ -293,8 +293,16 @@ RRset_addRdata(PyObject* self, PyObject* args) {
PyErr_Clear();
PyErr_SetString(PyExc_TypeError,
"Rdata type to add must match type of RRset");
- return (NULL);
+ } catch (const exception& ex) {
+ const string ex_what =
+ "Unexpected failure adding rrset Rdata: " +
+ string(ex.what());
+ PyErr_SetString(po_IscException, ex_what.c_str());
+ } catch (...) {
+ PyErr_SetString(PyExc_SystemError,
+ "Unexpected failure adding rrset Rdata");
}
+ return (NULL);
}
PyObject*
More information about the bind10-changes
mailing list