When I buy a bag of flour, I rarely go through the whole bag as quickly as I plan to, and flour (of all sorts) has a shelf ...
First, toss that funky flour ... whole grain flours, such as whole wheat, pumpernickel, and buckwheat, should be discarded if they are past their best-by date, according to King Arthur.