Nsa, C Programming, Cpp, Vulnerability, Memory Safety.
and its memory is freed. This means that c becomes a dangling reference, i.e., a reference to an invalid object. In the next line, the program tries to write to the memory location pointed by c, which is not allowed. This could potentially overwrite some important data or instructions in the