This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/53510] [4.8 Regression] OOM while compile some code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53510

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-05-29 11:34:42 UTC ---
Author: jakub
Date: Tue May 29 11:34:38 2012
New Revision: 187952

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187952
Log:
    PR middle-end/53510
    * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
    to avoid leaking memory.  No need to handle memory allocation
    failure.  Double string_len on each reallocation instead of
    adding 2.
    * gcov.c (read_line): Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gcov.c
    trunk/gcc/input.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]