diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2019-05-10 12:23:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-10 12:23:31 -0700 |
| commit | da2c88eaacf9c859cdda452a88ad5e552df98466 (patch) | |
| tree | c4cd5e8110b976d5c74747e390fa067f8e01694a /py/runtime.h | |
| parent | 46164c6ec6d6bc23feafbfce5b08e5307daac1f7 (diff) | |
| parent | 67007282c9036cc81e6cea0fab5a4378bc3ae743 (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.h | 1 |
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); |
