T
Tagore
Hi,
I was trying to debug a project.
I found that pointer to one of struct record was NULL, but it was
still able to dereference and take some garbage value.
i.e. if foo is a pointer whose value is NULL. then when I try to
access a data member like foo->bar..it is still able to take some
garbage value of bar despite foo being NULL.
How is it possible? Should not it crash here?
Thanks,
I was trying to debug a project.
I found that pointer to one of struct record was NULL, but it was
still able to dereference and take some garbage value.
i.e. if foo is a pointer whose value is NULL. then when I try to
access a data member like foo->bar..it is still able to take some
garbage value of bar despite foo being NULL.
How is it possible? Should not it crash here?
Thanks,