platform_hardware_interfaces/renderscript/1.0
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
..
default Fix RS HIDL server, pass data by bytes instead of by elements. 2017-03-29 17:42:33 -07:00
vts/functional RenderScript VTS implementation 2017-03-16 14:24:14 -07:00
Android.bp Update makefiles. 2017-03-24 21:50:45 -07:00
Android.mk Update makefiles. 2017-02-22 10:46:47 -08:00
IContext.hal Convert all comments into "doxygen-ready" comments. 2017-03-28 16:14:43 -07:00
IDevice.hal Convert all comments into "doxygen-ready" comments. 2017-03-28 16:14:43 -07:00
types.hal RenderScript HIDL HAL definition and server-side implementation. 2017-02-21 11:55:32 -08:00