diff options
author | Nikhil Benesch <nikhil.benesch@gmail.com> | 2020-10-04 23:40:40 -0400 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-10-06 13:53:42 -0700 |
commit | f5431aeaf5551995e1ec4455e33545bbc1170a1b (patch) | |
tree | b86130cccc5ee6c5698061672064106be54aa590 /gcc/omp-expand.c | |
parent | fcae5121154d1c3382b056bcc2c563cedac28e74 (diff) | |
download | gcc-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