Alex Smith's most productive half of his career staked the 49ers to a 17-3 halftime lead Sunday against the Buffalo Bills.