From ef1cbeae216a00e60fa9446b61bf3a0bb464c1d0 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Tue, 24 Sep 2024 22:00:57 +0200 Subject: [PATCH] fix be_byteslib.c --- lib/libesp32/berry/src/be_byteslib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libesp32/berry/src/be_byteslib.c b/lib/libesp32/berry/src/be_byteslib.c index a1d7d314b..460de413e 100644 --- a/lib/libesp32/berry/src/be_byteslib.c +++ b/lib/libesp32/berry/src/be_byteslib.c @@ -1180,6 +1180,7 @@ static int m_item(bvm *vm) { int argc = be_top(vm); buf_impl attr = bytes_check_data(vm, 0); /* we reserve 4 bytes anyways */ + check_ptr(vm, &attr); if (argc >=2 && be_isint(vm, 2)) { /* single byte */ int index = be_toint(vm,2); if (index < 0) {