OSDN Git Service

Fix texture sampling buffer overrun.
authorNicolas Capens <capn@google.com>
Fri, 26 Jun 2015 17:00:48 +0000 (13:00 -0400)
committerNicolas Capens <capn@google.com>
Fri, 26 Jun 2015 19:59:28 +0000 (19:59 +0000)
commit6ea7187ce9fd7610db170a6c63a77e81aa7e92bf
tree47932d70d396b8ccae67a7b1edc894c60c88d978
parentdb17b5d40c10d9854207f9026023c55ef90149d1
Fix texture sampling buffer overrun.

Sampling byte4 data currently reads 8 bytes for unpacking purposes.
Allocate 4 more bytes to prevent reading outside the image, even
though it's unused data.

Bug 21935792

Change-Id: I162fb3f3575131cedb008f82ef5170e773719e41
Reviewed-on: https://swiftshader-review.googlesource.com/3572
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/Renderer/Surface.cpp