From c5f9292598396797bde21d35a38a3da25f561f81 Mon Sep 17 00:00:00 2001 From: Aamir Khan Date: Sun, 10 May 2015 17:14:18 +0900 Subject: [PATCH] vp8l: don't ignore I/O errors when reading LZ77 parameters. Fixes golang/go#10383 Change-Id: I3e5e357a40a45189c31f0b4db9422dedc351c910 Reviewed-on: https://go-review.googlesource.com/9912 Reviewed-by: Nigel Tao --- vp8l/decode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp8l/decode.go b/vp8l/decode.go index 8d79fee..4319487 100644 --- a/vp8l/decode.go +++ b/vp8l/decode.go @@ -496,7 +496,7 @@ func (d *decoder) lz77Param(symbol uint32) (uint32, error) { offset := (2 + symbol&1) << extraBits n, err := d.read(extraBits) if err != nil { - return 0, nil + return 0, err } return offset + n + 1, nil }