projects
/
GitHub
/
LineageOS
/
android_hardware_samsung_slsi_exynos5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4657e3
)
gralloc: make sure rgb buffers have at least 1 line of padding
author
Greg Hackmann
<ghackmann@google.com>
Wed, 29 Aug 2012 16:58:45 +0000
(09:58 -0700)
committer
Greg Hackmann
<ghackmann@google.com>
Wed, 29 Aug 2012 16:58:45 +0000
(09:58 -0700)
The display controller may read up to 1 line past the end of the image
Change-Id: Ibb6ed15d1c02d07fe955922249c71b7ce9bce0fc
Signed-off-by: Greg Hackmann <ghackmann@google.com>
gralloc/gralloc.cpp
patch
|
blob
|
blame
|
history
diff --git
a/gralloc/gralloc.cpp
b/gralloc/gralloc.cpp
index 708f080505d6e6d2d29dd014dbace7aad0a06803..1c0180b1280af7da8b102a7835e35a72a036d520 100644
(file)
--- a/
gralloc/gralloc.cpp
+++ b/
gralloc/gralloc.cpp
@@
-155,7
+155,7
@@
static int gralloc_alloc_rgb(int ionfd, int w, int h, int format, int usage,
return -EINVAL;
}
bpr = ALIGN(w*bpp, 16);
- vstride = ALIGN(h, 16);
+ vstride = ALIGN(h
+1
, 16);
size = bpr * vstride;
*stride = bpr / bpp;
size = ALIGN(size, PAGE_SIZE);