I wouldn't eat someone else I absolutely had to. Look at it this way folks, if you were trapped somewhere with someone who died and you had to choose between eating them and starving to death, your starving mind isn't going to be quite as apt to consider moral and philosophical issues. Of course we wouldn't want to eat a body when we have the luxury of thought, of sitting back and considering the hypothetical, because our society condemns that sort of thing. However, morals, hypothetical scenarios, religious views go bye-bye when survival is at stake unless the person is really hellbent on following what they "believe" in.
Remember, starvation is a form of torture, one of the worst forms probably given all the horrible things that happen to your mind and body. We're talking being so anxious that you might literally chew your own fingers off, having schizophrenic psychotic hallucinations, having so little energy your brain does not work . How long could you hold out against that torture before giving in? I think most people would give in eventually if not quickly. Most people would do anything, including eating dirt, why not a human body? After awhile, that body will start to look very tasty.