diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-04-06 10:56:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-06 10:56:52 -0400 |
commit | 6a9c21c4565a9c7ebe5c11bf4152a80cfa4398dc (patch) | |
tree | 2461834660453e6b42afb2149986b895c2dbf8af /vendor/github.com/BurntSushi/toml/lex.go | |
parent | 8b6f911e4818d02bca65ff263dcb61bfe082a470 (diff) | |
parent | bd4b9c3d571abede09b62621449a3565af5b917c (diff) | |
download | podman-6a9c21c4565a9c7ebe5c11bf4152a80cfa4398dc.tar.gz podman-6a9c21c4565a9c7ebe5c11bf4152a80cfa4398dc.tar.bz2 podman-6a9c21c4565a9c7ebe5c11bf4152a80cfa4398dc.zip |
Merge pull request #13776 from containers/dependabot/go_modules/github.com/BurntSushi/toml-1.1.0
build(deps): bump github.com/BurntSushi/toml from 1.0.0 to 1.1.0
Diffstat (limited to 'vendor/github.com/BurntSushi/toml/lex.go')
-rw-r--r-- | vendor/github.com/BurntSushi/toml/lex.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/github.com/BurntSushi/toml/lex.go b/vendor/github.com/BurntSushi/toml/lex.go index 63ef20f47..ce7f546b4 100644 --- a/vendor/github.com/BurntSushi/toml/lex.go +++ b/vendor/github.com/BurntSushi/toml/lex.go @@ -128,6 +128,11 @@ func (lx lexer) getPos() Position { } func (lx *lexer) emit(typ itemType) { + // Needed for multiline strings ending with an incomplete UTF-8 sequence. + if lx.start > lx.pos { + lx.error(errLexUTF8{lx.input[lx.pos]}) + return + } lx.items <- item{typ: typ, pos: lx.getPos(), val: lx.current()} lx.start = lx.pos } |