Berry fix index accessor for rean only bytes (#22193)

This commit is contained in:
s-hadinger 2024-09-23 22:43:33 +02:00 committed by GitHub
parent f3aed72f97
commit 2d5545997e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -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) {