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 fortran/15335] runtime error "Attempt to allocate a negative amount of memory"


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-04-18 12:03 -------
Using the testcase from comment #4, it seems clear that there is no check on
whether the slice selected has negative width...

    atmp.2.dim[0].stride = 1;
    atmp.2.dim[0].lbound = 0;
    atmp.2.dim[0].ubound = i - 3;
    D.489 = i - 2;
    atmp.2.data = (real4[0:] *) _gfortran_internal_malloc (D.489 * 4);

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org
   Last reconfirmed|2005-02-17 05:04:45         |2005-04-18 12:03:58
               date|                            |


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


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