Woodall proved that for a graph G of order n≥2k+3 where k≥0 is an integer, if e(G)≥(2n−k−1)+(2k+2)+1 then G contains a Cℓ for each ℓ∈[3,n−k]. In this article, we prove a stability result of this theorem. As a byproduct, we give complete solutions to two problems in \cite{GN19}. Our second part is devoted to an open problem by Nikiforov: what is the maximum C such that for all positive ε<C and sufficiently large n, every graph G of order n with spectral radius ρ(G)>⌊4n2⌋ contains a cycle of length ℓ for every ℓ≤(C−ε)n. We prove that C≥41 by a method different from previous ones, improving the existing bounds. We also derive an Erdős-Gallai type edge number condition for even cycles, which may be of independent interest.