From 2d5545997e436eb1ca23fafcc404df4f3c018cb4 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Mon, 23 Sep 2024 22:43:33 +0200 Subject: [PATCH] Berry fix index accessor for rean only bytes (#22193) --- lib/libesp32/berry/src/be_byteslib.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/libesp32/berry/src/be_byteslib.c b/lib/libesp32/berry/src/be_byteslib.c index 39a8ccbdb..a1d7d314b 100644 --- a/lib/libesp32/berry/src/be_byteslib.c +++ b/lib/libesp32/berry/src/be_byteslib.c @@ -1180,7 +1180,6 @@ 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_modifiable(vm, &attr); if (argc >=2 && be_isint(vm, 2)) { /* single byte */ int index = be_toint(vm,2); if (index < 0) {