Mike Ribeiro scored the tying goal with 52.5 seconds left in the third period and Loui Eriksson netted the winner at 3:52 of overtime to give the host Dallas Stars a 3-2 victory over the NHL-leading Vancouver Canucks.

DALLAS — Down a goal with less than a minute left in regulation, the Dallas Stars appeared to have little more than a slim chance against the league-leading Vancouver Canucks.

Moments later, Mike Ribeiro and Loui Eriksson provided a stunning boost to the Stars’ playoff chances.

Ribeiro scored the tying goal with 52.5 seconds left in the third period and Eriksson netted the winner at 3:52 of overtime to give the Stars a 3-2 victory over the Canucks. Dallas, eighth in the Western Conference, has won four in a row.

“It took us 59 minutes to get the second goal, but I thought we stuck with it for 60 minutes and we showed some resolve,” Stars coach Glen Gulutzan said.

Ryan Kesler and Mason Raymond scored for the Canucks, who were playing their sixth game in nine days.

“Logically, six games in 8 ½ days in six different cities, that’s a lot of hockey,” Vancouver coach Alain Vigneault said. “But that being said, we had the game where we wanted it, going into the third with a one-goal lead.

“Unfortunately, we lost it.”

Vancouver goaltender Roberto Luongo, who made 25 saves, said of the Stars: “They’re a desperate team. They’re playing for their lives. They’re in playoff mode right now.”