Commit Graph

8 Commits

Author SHA1 Message Date
Baldev Sahu
13de7b77a3 gralloc: Fix issue with mmap/munmap meta due to reserved size
Fix possible security issue which can happen if client changes
reserved size in meta data. This can cause wrong size munmap.

Change-Id: I5d2b55272d1b5df217e71c45ecdece9ed9eaae97
2022-04-22 18:26:13 -07:00
Abhishek Jain
ac3641e0a1 display: compilation fix in gralloc
if gr_priv_handle.h is accessed via C files, it throws error.
Added ifdef for cpluplus to fix this.

Change-Id: I16e593fb369205fefec76b05e9c6199b376d2f67
2019-06-14 17:58:03 +05:30
Ramakant Singh
20b6c8c4b9 Gralloc: Fix out of bound read in private_handle_t.
Change-Id: I3d16321e29291007be0d8be11225f426ea0dd252
CRs-Fixed: 2337383
2019-01-15 22:32:37 -08:00
Mohan Pallaka
8181cef67a Gralloc: Use 4 bytes padding for private_handle_t
Force 4 bytes padding to avoid data leak due to uninitialized padding.

Bug: 77237704
Change-Id: I3922bf62bfa6c78806a6d5fd969e2d9faf067abe
CRs-Fixed: 2257685
2018-08-27 08:26:12 -07:00
Mohan Pallaka
5d8144382d commonsys-intf: display: add changes for display-android-commonsys.lnx.1.0
Relocate changes from display.lnx.5.0 to display-android-commonsys.lnx.1.0

CRs-Fixed: 2251141
Change-Id: Ia65f6d7f83e21702cf61f0672ba97ae006ae7886
2018-08-02 16:37:46 -07:00
Naseer Ahmed
04a804a8f1 display: Use log.h from VNDK
Change-Id: I8aa8566036a44b1587f5cfe6c745e11a3dd19481
2018-03-06 20:41:14 -05:00
Naseer Ahmed
a422f35f04 gralloc: Add allocator and mapper HALs
Implement the hidl .hal interfaces directly instead of using the
default shims.
This is required since new additions to .hal will no longer be
added to the legacy gralloc1 C header.

Change-Id: If577a14f75d7d13da0ff656c96ab451d21c910ce
2018-02-20 12:17:01 -08:00
Naseer Ahmed
bfd66dbf6c gralloc: Move to new directory
In preparation for the hidlization of gralloc.
Also delete obsolete libgralloc

Change-Id: Id657f985cff1bdbf86c781efc52e8bda4e3d27b4
2018-02-13 11:45:12 -05:00