No description
Find a file
Michael Butler 1791d9bfab Fix RS HIDL server, pass data by bytes instead of by elements.
Our current stack:
  API->API_TO_HAL_translator->HAL
          ->HAL_TO_Implementation_translator->Implementation

  For most APIs:
  - API passes objectCount.
  - HAL expects objectCount.
  - Implementation expects objectCount.

  For APIs like ScriptGroupCreate:
  - API passes byteCount. And unfortunately, these APIs are part of
    NDK, we could not make them also passing objectCount like others.
  - HAL expects objectCount.
  - Implementation expects byteCount.

  So that both API_TO_HAL_translator and
  HAL_TO_Implementation_translator should correctly convert input
  objectCount/byteCount to byteCount/objectCount.

  This CL only fixes the HAL_TO_Implementation_translator part,
  whereas aosp/356395 fixes the API_TO_HAL_translator part. Both
  parts were mistakenly using byteCount as objectCount, causing
  potential out-of-bound access.

Bug: 36404879
Test: mm on angler
Change-Id: I28541a8926aeafece40e2a3f664bda67e26a34a2
(cherry picked from commit fd14e27b89)
2017-03-29 17:42:33 -07:00
audio Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
automotive Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
biometrics Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
bluetooth Convert all comments into "doxygen-ready" comments. 2017-03-28 16:14:43 -07:00
boot Update makefiles. am: e90c31f125 am: f11981de68 2017-03-27 17:51:28 +00:00
broadcastradio Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
camera Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
configstore Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
contexthub Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
drm Update makefiles for hwtypes.h 2017-03-28 15:18:20 +00:00
dumpstate Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
gatekeeper Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
gnss Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
graphics Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
health Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
ir Convert all comments into "doxygen-ready" comments. 2017-03-28 16:14:43 -07:00
keymaster Merge "Revert "Add keymaster VTS tests."" into oc-dev 2017-03-29 20:19:28 +00:00
light Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
media Update makefiles for hwtypes.h 2017-03-28 15:18:20 +00:00
memtrack Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
nfc Convert all comments into "doxygen-ready" comments. 2017-03-28 16:14:43 -07:00
power Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
radio Convert all comments into "doxygen-ready" comments. 2017-03-28 16:14:43 -07:00
renderscript Fix RS HIDL server, pass data by bytes instead of by elements. 2017-03-29 17:42:33 -07:00
sensors Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
soundtrigger Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
tests Convert all comments into "doxygen-ready" comments. 2017-03-28 16:14:43 -07:00
thermal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
tv Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
usb Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
vibrator Update makefiles for hwtypes.h 2017-03-28 15:18:20 +00:00
vr Remove viral readproc group dependency. 2017-03-23 19:49:37 +00:00
wifi Convert all comments into "doxygen-ready" comments. 2017-03-28 16:14:43 -07:00
Android.bp Add hidl_default and make modules use hidl_default. 2017-03-08 16:22:00 -08:00
CleanSpec.mk Bluetooth: move to vendor partition. 2017-02-27 15:41:04 -08:00
MODULE_LICENSE_APACHE2 Apache2 module license. 2016-08-30 11:28:36 -07:00
NOTICE Apache2 module license. 2016-08-30 11:28:36 -07:00
update-base-files.sh Add annotations to create gnss-base.h 2017-01-23 08:41:15 -08:00
update-makefiles.sh Use simplified update-makefiles.sh script. 2017-03-20 04:26:20 -07:00