Alex Smith threw for a season-high 303 yards and three touchdowns,as the San Francisco 49ers amassed a franchise-record 621 yards in blowing by the Buffalo Bills 45-3.