(Psychological / emotional perspective)

If we dream of food being bad, we are not taking sufficient care of our inner needs.

A bad smell in dreams could mean that our environment is not supporting us. Bad as in bad behaviour suggests we are rebelling in some way.