Merge "Fixed incorrect WAC decoding" into qt-qpr1-dev
am: fa35152703
Change-Id: I024c4bff8b733fdf2216cdd16164a2d880aaf91b
This commit is contained in:
@@ -215,7 +215,7 @@ public class GsmSmsCbMessage {
|
||||
private static Pair<Integer, List<Geometry>> parseWarningAreaCoordinates(
|
||||
byte[] pdu, int wacOffset) {
|
||||
// little-endian
|
||||
int wacDataLength = (pdu[wacOffset + 1] << 8) | pdu[wacOffset];
|
||||
int wacDataLength = ((pdu[wacOffset + 1] & 0xff) << 8) | (pdu[wacOffset] & 0xff);
|
||||
int offset = wacOffset + 2;
|
||||
|
||||
if (offset + wacDataLength > pdu.length) {
|
||||
|
||||
Reference in New Issue
Block a user