LOS ANGELES (CBSLA.com) — Two state lawmakers from Southern California and animal rights advocates are working to free hot dogs – literally.

Assembly Bill 797 would provide legal immunity for anyone who damages a vehicle “in a good faith effort” to rescue a child or pet from “dangerous conditions while trapped in a hot car.”

READ MORE: 3 Dead, 2 Injured When Gunfire Erupts At House Party In Inglewood

Introduced by Assemblyman Marc Steinorth (R-Rancho Cucamonga) and sponsored by the Los Angeles District Attorney and the Humane Society of the United States, “The Right To Rescue Act” would limit civil liability for anyone who identifies a child or pet locked in a car that may be “endangered due to heat, cold, lack of adequate ventilation, or other circumstances that could reasonably be expected to cause suffering, disability, or death to the minor or animal.”

The corrective action could be taken only after it was determined that the vehicle was locked and authorities had been contacted prior to damaging the vehicle.

READ MORE: Instagram Rolls Out New Feature Allowing Certain Influencers To Charge For Content

Critics say the legislation could invite legal ambiguity and liability questions for cases involving overzealous animal rights advocates or other passersby who may damage property without cause upon seeing children or pets left inside a vehicle.

Steinorth, along with Assemblymembers Ling Ling Chang of Diamond Bar and Kristin Olsen of Riverbank, attempted to demonstrate the urgency behind AB 797 by making a video of the trio taking the Hot Car Challenge, a viral campaign that seeks to raise awareness of dangerous conditions for kids and pets in locked vehicles.

With an outside temperature of 92 degrees, the interior temperature of the car rose to over 100 degrees after only eight minutes during the video demonstration.

MORE NEWS: Black Restaurant Week Kicks Off Sunday In Long Beach

AB 797 is currently under consideration in the Senate Judiciary Committee.