[Bug fortran/15335] runtime error "Attempt to allocate a negative amount of memory"

fxcoudert at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Apr 18 12:04:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list