Fix incorrect size reading
authorJohann <johannkoenig@google.com>
Fri, 26 Jan 2018 23:50:50 +0000 (15:50 -0800)
committerJohann <johannkoenig@google.com>
Fri, 26 Jan 2018 23:51:50 +0000 (15:51 -0800)
commit738b829b8cdf079a5fa48c74a28a177c9567d212
treec38f1a383b09328ba9efc8c5472e2f6c34ed942a
parenta9bbff1049ea774ed07286d979dbda7e7f2fe430
Fix incorrect size reading

Cherry pick from vp9:

commit 85770264ac891505730dcd5092d1993a62c74060
Guard against incorrect size values moving *data past data_end.

Check read length against the difference of the buffers.

Change-Id: I5e8679ddd447c4d73deb80be5ec94841a92c5fcd
vp8/decoder/decodeframe.c