The correct reply is only shoot the cartridge it is chambered for in any gun. There are any number of rounds that are interchangable but those are well documented. Like 38spl in 357mag. Unless the gun is old or of inferiour quality that works.
When you begin to shoot rounds that are smaller in diamiter is when you get into trouble. The cases on a lr round will most times split upon fireing in a 22 mag chamber. sometimes they only swell. You are taking a chance and that is your call. It is not wise for any of us to recomend you do it. While I doubt it would blow up you could get hot gasses and bits of brass and powder blown back into your eye.
I have fired 22lr in a 22mag revolver quite a few times with no ill effects to myself. That was my choice and I DO NOT RECOMEND THAT YOU TRY IT. The revolver was further from my eye so I felt it was less of a threat to me. Thats how I know what the lr cases look like when fired in the mag chamber.
In and emergency or survival situation, if thats all you have to work with then you half to decide if the risk is worth it. I will say I own 4 K22's in 22lr, and 2 S&W model 48's to shoot the mags in.
Regards,