No, it shouldn't be possible. However if you have memory corruption and if something overwrites ptr, then this could happen. Solution is to find the memory corruption and fix it.
priyatendulkar like this