When casting a raw pointer to a slice, the produced raw pointer does not correctly update its length metadata, leading to potential issues such as
creating a slice with less data than intended or more data, risking undefined behavior upon dereferencing.