You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following panics on rebalance when compiled with Rust 1.78.0:
implConsumerContextforContext{fnpre_rebalance(&self,rebalance:&Rebalance){ifletRebalance::Assign(assigned) = rebalance {for element in assigned.elements(){// never reached}}}}
Panic message:
unsafe precondition(s) violated: slice::from_raw_parts_mut requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`
It appears to be caused by the slice::from_raw_parts_mut call in TopicPartitionList::elements:
The following panics on rebalance when compiled with Rust 1.78.0:
Panic message:
It appears to be caused by the
slice::from_raw_parts_mut
call inTopicPartitionList::elements
:It looks like
elems
can be null:If I check
elements
capacity and return if it's 0, this panic does not occur:It appears that
TopicPartitionList::elements
should check thatcnt
is greater than zero before callingslice::from_raw_parts_mut
.The text was updated successfully, but these errors were encountered: