I don’t know if these are official explanations, but I hope this gives a more appropriate meaning for this example:
substitution reference: the return statement returns a reference (pointer) to arrays. However, the memory is deleted (or maybe) after the function is closed, so there is a link that does not indicate the allocated memory, which is called a link to hang.
This can lead to a common security error. In general, a memory that is not allocated should not be written. If you try to do this, general protection may be raised by the operating system.
Michel keijzers
source share