aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2009-05-16 16:53:02 +0000
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2009-05-16 16:53:02 +0000
commitb0c068160f502c9d37ec02c8a514546937544eb8 (patch)
treec2d721e1845abbc3569797c630078a90a7ba5746 /gcc/c-common.c
parent1ab8a8c260784fef348ec8cdae76a859a6b0081c (diff)
downloadgcc-b0c068160f502c9d37ec02c8a514546937544eb8.zip
gcc-b0c068160f502c9d37ec02c8a514546937544eb8.tar.gz
gcc-b0c068160f502c9d37ec02c8a514546937544eb8.tar.bz2
re PR fortran/31243 (Detect strings longer than 2**32 characters)
PR fortran/31243 * resolve.c (resolve_substring): Don't allow too large substring indexes. (gfc_resolve_substring_charlen): Fix typo. (gfc_resolve_character_operator): Fix typo. (resolve_charlen): Catch unreasonably large string lengths. * simplify.c (gfc_simplify_len): Don't error out on LEN range checks. * gcc/testsuite/gfortran.dg/string_1.f90: New test. * gcc/testsuite/gfortran.dg/string_2.f90: New test. * gcc/testsuite/gfortran.dg/string_3.f90: New test. From-SVN: r147619
Diffstat (limited to 'gcc/c-common.c')
0 files changed, 0 insertions, 0 deletions