summaryrefslogtreecommitdiff
path: root/py/runtime.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2019-05-10 12:23:31 -0700
committerGitHub <noreply@github.com>2019-05-10 12:23:31 -0700
commitda2c88eaacf9c859cdda452a88ad5e552df98466 (patch)
treec4cd5e8110b976d5c74747e390fa067f8e01694a /py/runtime.h
parent46164c6ec6d6bc23feafbfce5b08e5307daac1f7 (diff)
parent67007282c9036cc81e6cea0fab5a4378bc3ae743 (diff)
Merge pull request #1860 from godlygeek/int_to_bytes_overflow_checks
Add overflow checks for int to bytes conversions
Diffstat (limited to 'py/runtime.h')
-rw-r--r--py/runtime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/runtime.h b/py/runtime.h
index c5a94b0b1..e8398cf0e 100644
--- a/py/runtime.h
+++ b/py/runtime.h
@@ -163,6 +163,7 @@ NORETURN void mp_raise_OSError_msg(const compressed_string_t *msg);
NORETURN void mp_raise_OSError_msg_varg(const compressed_string_t *fmt, ...);
NORETURN void mp_raise_NotImplementedError(const compressed_string_t *msg);
NORETURN void mp_raise_NotImplementedError_varg(const compressed_string_t *fmt, ...);
+NORETURN void mp_raise_OverflowError_varg(const compressed_string_t *fmt, ...);
NORETURN void mp_raise_MpyError(const compressed_string_t *msg);
NORETURN void mp_raise_recursion_depth(void);