How long can you keep meat in the freezer?

I've always wondered how long can it really stay in there without giving me a tummy ache when I decide to cook it