Browse Source

extmod/modopenamp_remoteproc: Fix entry point address int overflow.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
pull/15392/head
iabdalkader 4 months ago
committed by Damien George
parent
commit
4350cbcb48
  1. 2
      extmod/modopenamp_remoteproc.c

2
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.

Loading…
Cancel
Save