Resolve memory corruption because of padding issue

mDefaultSysCodePowerstate eventhough of type uint8_t,
it gets passed as int reference to function
checkAndUpdatePowerState.
This causes overwriting of its value in a region more
than what is actually allocated for it. Results in corrupting
memory of variable declared next to it.
Fix:Do not allow access of more memory than variable
allocated initially whenever passing as reference to another
function(Do not type cast to variable types of higher type).
2 files changed
tree: c186f8bd6c2b432853effc650837656e2266f2df
  1. assets/
  2. etc/
  3. nci/
  4. res/
  5. src/
  6. tests/
  7. .gitignore
  8. Android.bp
  9. AndroidManifest.xml
  10. CleanSpec.mk
  11. OWNERS
  12. PREUPLOAD.cfg
  13. README.md
README.md

NFC_NCIHAL_Nfc

Git Repository

DESCRIPTIONCHECKOUT COMMAND
NFC_NCIHAL_Nfcgit clone https://github.com/NXPNFCProject/NFC_NCIHAL_Nfc.git

Supported Version on "br_android_ncihalx_comm_12" branch

Android VersionNXP ReleaseNXP Tag
aosp-master12.51.00 (SN110)NFC_AR_00_02.00_6000_12.51.00_OpnSrc