Federal, Bill Emerson Good Samaritan Food Donation Act, and State, California State Russel Bill, laws protect the donors and 501c3 non-profit organization from civil and criminal liability when donations given or received are done in good faith, except for gross negligence and/or intentional misconduct.
You can find the Bill Emerson Good Samaritan Food Donation act HERE.