summaryrefslogtreecommitdiffstatshomepage
path: root/extmod
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2024-07-10 22:49:29 +0300
committerDamien George <damien@micropython.org>2024-08-08 17:59:17 +1000
commit4350cbcb48599d29d77c8b557aa96b65ae7d6aeb (patch)
tree6e95c6ec333d365a4abe710c8c30ccd71a633896 /extmod
parent1216f2c313fbf68cb7f18c4914ddf843c31d9191 (diff)
downloadmicropython-4350cbcb48599d29d77c8b557aa96b65ae7d6aeb.tar.gz
micropython-4350cbcb48599d29d77c8b557aa96b65ae7d6aeb.zip
extmod/modopenamp_remoteproc: Fix entry point address int overflow.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
Diffstat (limited to 'extmod')
-rw-r--r--extmod/modopenamp_remoteproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/modopenamp_remoteproc.c b/extmod/modopenamp_remoteproc.c
index 20e4a47c18..82719dca96 100644
--- a/extmod/modopenamp_remoteproc.c
+++ b/extmod/modopenamp_remoteproc.c
@@ -137,7 +137,7 @@ mp_obj_t openamp_remoteproc_make_new(const mp_obj_type_t *type, size_t n_args, s
}
if (mp_obj_is_int(args[ARG_entry].u_obj)) {
- self->rproc.bootaddr = mp_obj_get_int(args[ARG_entry].u_obj);
+ self->rproc.bootaddr = mp_obj_int_get_truncated(args[ARG_entry].u_obj);
} else {
#if MICROPY_PY_OPENAMP_REMOTEPROC_ELFLD_ENABLE
// Load firmware.