Skip to content

Commit 4b994b0

Browse files
Maitrayi Sabaratnambjornmu
authored andcommitted
Bug#35847193 Cluster code fails to compile on Ubuntu23.10
Fixing compiler warning by adding a check to ensure accessing array element within the range. Reviewed by: Mauritz Sundell <[email protected]> Change-Id: I55a0a72b5f7733e069bcd229ff49e45ed3bf38cb
1 parent 20e59bf commit 4b994b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/ndb/include/util/Bitmask.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ BitmaskImpl::setRange(unsigned size [[maybe_unused]], Uint32 data[],
307307
return;
308308
}
309309

310+
assert(start < (size << 5));
310311
Uint32 last = start + len - 1;
311312
Uint32 *ptr = data + (start >> 5);
312313
Uint32 *end = data + (last >> 5);

0 commit comments

Comments
 (0)