If you are overeating and judging yourself for lacking willpower, please know that there is nothing intrinsically wrong with you. You can recover.
When I didn't feel safe, I used food to help me calm down. When I became less afraid of my feelings, I didn't need to abuse food anymore.