Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 920b4216 authored by Nathan Harold's avatar Nathan Harold
Browse files

Force BSIC value to only one byte

BSIC is being sign-extended when copied to a java integer.
Truncate the length keeping the magnitude of the lowest byte.

Bug: 37787893
Test: compilation
Change-Id: I7807be3321e9c90f23351549c86ebe03dc239d80
(cherry picked from commit b808a31b)
parent bff46519
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4827,7 +4827,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {
                    p.writeInt(cellInfoGsm.cellIdentityGsm.lac);
                    p.writeInt(cellInfoGsm.cellIdentityGsm.cid);
                    p.writeInt(cellInfoGsm.cellIdentityGsm.arfcn);
                    p.writeInt(cellInfoGsm.cellIdentityGsm.bsic);
                    p.writeInt(Byte.toUnsignedInt(cellInfoGsm.cellIdentityGsm.bsic));
                    p.writeInt(cellInfoGsm.signalStrengthGsm.signalStrength);
                    p.writeInt(cellInfoGsm.signalStrengthGsm.bitErrorRate);
                    p.writeInt(cellInfoGsm.signalStrengthGsm.timingAdvance);