1
0
mirror of https://github.com/golang/go synced 2024-11-05 15:46:11 -07:00
go/present
Dmitri Shuralyov b2104f82a9 present: check if too few arguments to image, iframe, or video
Previously, using incorrect syntax for one of image, iframe, or video
functions caused an index out of range panic. Add a check to prevent
the panic and return an error instead.

Fixes golang/go#35142

Change-Id: Ifffb4cc5daded5331d617a3db7cad84e37abadc8
Reviewed-on: https://go-review.googlesource.com/c/tools/+/203477
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2019-10-26 03:49:45 +00:00
..
args.go
caption.go
code_test.go
code.go
doc.go
html.go
iframe.go present: check if too few arguments to image, iframe, or video 2019-10-26 03:49:45 +00:00
image.go present: check if too few arguments to image, iframe, or video 2019-10-26 03:49:45 +00:00
link_test.go
link.go
parse.go
style_test.go
style.go
video.go present: check if too few arguments to image, iframe, or video 2019-10-26 03:49:45 +00:00