LOIC VENANCE/AFP/Getty Images
Eva Longoria and Rosario Dawson, take note: This is how you avoid a crotch flash with class.
While there have been quite a few wardrobe malfunctions at the Cannes Film Festival thus far, Jessica Chastain wisely made sure she wouldn't have a similar fashion faux pas on the red carpet.
NEWS: Thigh high slits at Cannes
Knowing she would have to hike up her dress to climb the steep steps at the All Is Lost premiere, the actress donned purple Spanx underneath her embellished Givenchy by Riccardo Tisci gown.
The plum hue so perfectly matched the dress, we did a double take before realizing the undergarments weren't actually a part of the gown!
NEWS: Marion Cotillard rocks beehive at Cannes
True, a Spanx peek-a-boo moment isn't exactly ideal but let's be honest it's way less embarrassing than flashing underwear or worse.
So, brava Jessica (and her stylist)! Now let's hope other celebrities start using this trick.
PHOTOS: Stars' Wardrobe Malfunctions