From 2c7716fed03049a72d68096908c334e5c9bb1680 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 28 Sep 2016 11:06:18 +1000 Subject: py/objset: Ensure that use of frozenset.update raises an exception. --- py/objset.c | 1 + 1 file changed, 1 insertion(+) (limited to 'py/objset.c') diff --git a/py/objset.c b/py/objset.c index 042549900..6b6f95f9b 100644 --- a/py/objset.c +++ b/py/objset.c @@ -435,6 +435,7 @@ STATIC void set_update_int(mp_obj_set_t *self, mp_obj_t other_in) { } STATIC mp_obj_t set_update(size_t n_args, const mp_obj_t *args) { + check_set(args[0]); for (mp_uint_t i = 1; i < n_args; i++) { set_update_int(MP_OBJ_TO_PTR(args[0]), args[i]); } -- cgit v1.2.3