summaryrefslogtreecommitdiff
path: root/vendor/github.com/BurntSushi/toml/lex.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-06 10:56:52 -0400
committerGitHub <noreply@github.com>2022-04-06 10:56:52 -0400
commit6a9c21c4565a9c7ebe5c11bf4152a80cfa4398dc (patch)
tree2461834660453e6b42afb2149986b895c2dbf8af /vendor/github.com/BurntSushi/toml/lex.go
parent8b6f911e4818d02bca65ff263dcb61bfe082a470 (diff)
parentbd4b9c3d571abede09b62621449a3565af5b917c (diff)
downloadpodman-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.go5
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
}