Glass is overall a safer for food storage than plastic. Chemicals like BPA which may cause cancer from plastic containers may migrate from the plastic into your food, and into your body system. This commonly occurs when hot food is put into plastic or during microwave heating. Glass food storage containers don't leach unwanted, poisonous chemicals when in contact with food.
For your health, you need to consider all that you can do yourself to avoide getting hurt. High borosilicate airtight glass container will be your best choice of storing and heating food.