Commit b61a070
committed
libbinder Parcel: Fix ubsan error in readData
Use don't cast the result of readInplace before calling memcpy to align
the data. With clang-r522817 passing an unaligned pointer to memcpy also
triggers a ubsan error.
Bug: 354981705
Change-Id: Ibd104bcfac519211857f1e9e93a1ec35e7bcd7731 parent 9333e35 commit b61a070
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1240 | 1240 | | |
1241 | 1241 | | |
1242 | 1242 | | |
1243 | | - | |
| 1243 | + | |
1244 | 1244 | | |
1245 | 1245 | | |
1246 | 1246 | | |
| |||
0 commit comments