aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-expand.c
diff options
context:
space:
mode:
authorNikhil Benesch <nikhil.benesch@gmail.com>2020-10-04 23:40:40 -0400
committerIan Lance Taylor <iant@golang.org>2020-10-06 13:53:42 -0700
commitf5431aeaf5551995e1ec4455e33545bbc1170a1b (patch)
treeb86130cccc5ee6c5698061672064106be54aa590 /gcc/omp-expand.c
parentfcae5121154d1c3382b056bcc2c563cedac28e74 (diff)
downloadgcc-f5431aeaf5551995e1ec4455e33545bbc1170a1b.zip
gcc-f5431aeaf5551995e1ec4455e33545bbc1170a1b.tar.gz
gcc-f5431aeaf5551995e1ec4455e33545bbc1170a1b.tar.bz2
compiler: avoid undefined behavior in Import::read
For some implementations of Stream, advancing the stream will invalidate the previously-returned peek buffer. Copy the peek buffer before advancing in Import::read to avoid this undefined behavior. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/259438
Diffstat (limited to 'gcc/omp-expand.c')
0 files changed, 0 insertions, 0 deletions