Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

frameworks-native: Commit

frameworks/native


Commit MetaInfo

Revisión3b4d3a5dd42a2806847da8b8e0486cd0d15e15d0 (tree)
Tiempo2020-06-01 23:43:52
AutorTong Bo <bo.tong@inte...>
CommiterChih-Wei Huang

Log Message

Make DisplayInfo struct packed

When DisplayInfo is handled through binder transaction, especially
between a 32-bit client and 64-bit service, it may have different
size and client will receive incorrect values. Make this struct packed
and so it will keep the same size.

Change-Id: Ia0a9afb28ba2c9a2fc581f3ae544e3ea2b3fe419
Tracked-On: https://jira01.devtools.intel.com/browse/OAM-67302
Signed-off-by: Tong Bo <bo.tong@intel.com>

Cambiar Resumen

Diferencia incremental

--- a/libs/ui/include/ui/DisplayInfo.h
+++ b/libs/ui/include/ui/DisplayInfo.h
@@ -24,7 +24,7 @@
2424
2525 namespace android {
2626
27-struct DisplayInfo {
27+struct __attribute__ ((__packed__)) DisplayInfo {
2828 uint32_t w{0};
2929 uint32_t h{0};
3030 float xdpi{0};
Show on old repository browser