Sedrick Irvin scored on a 1-yard run with 19 seconds left to lift Stanford to a 30-29 win against visiting San Jose State on Saturday night in Stanford, Calif.
The Cardinal drove 80 yards in 12 plays on the final drive, getting a first down on fourth-and-10 on a 34-yard catch by Caden High with 1:12 remaining.
Stanford quarterback Ben Gulbranson recorded 444 yards and two touchdowns on 29-of-43 passing.
CJ Williams caught 12 passes for 138 yards, and High caught five passes for 110 yards for the Cardinal (2-3).
San Jose quarterback Walker Eget completed 36-of-58 passes for 481 yards and three touchdowns.
Three receivers went over 100 yards for the Spartans (1-3).
Kyri Shoels caught 10 passes for 143 yards and a touchdown, Danny Scudero caught 11 passes for 135 yards and two touchdown