About 15 years ago I bought a 25 pound bag of popping corn (low moisture content) and a grinder, I wonder how it would come out today, it should still produce something edible.
I will never use it, it is kept in desert heat and in the original plastic bag, but I will keep it for deep storage as desperation food.
I have used popcorn for cornbread and cornmeal mush but it was either fresh from the grocery store or I bought it in a five pound bucket sealed in a mylar bag with no oxygen. If you buy corn in the mylar bag, it should last indefinitely with no bugs.