diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-08-25 20:31:51 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-08-25 20:31:51 +0000 |
commit | 60c47c007366840f15fe17913d0592c2819b7c99 (patch) | |
tree | 7fbced9827c20185a4d4e974394081364996d9a4 /gcc/gcc.c | |
parent | c316b5e4f1f7987e37641667fb47eb37f32f0e2b (diff) | |
download | gcc-60c47c007366840f15fe17913d0592c2819b7c99.zip gcc-60c47c007366840f15fe17913d0592c2819b7c99.tar.gz gcc-60c47c007366840f15fe17913d0592c2819b7c99.tar.bz2 |
compiler: Allow string slices with start index == length.
Avoid an off-by-one error when checking the start index of a string
slice by allowing the start index to be the string length instead
of the string length - 1.
Fixes golang/go#11522.
Reviewed-on: https://go-review.googlesource.com/13030
From-SVN: r227191
Diffstat (limited to 'gcc/gcc.c')
0 files changed, 0 insertions, 0 deletions