opensecure / jss7

Automatically exported from code.google.com/p/jss7
0 stars 0 forks source link

org.mobicents.protocols.ss7.map.service.mobility.subscriberInformation.decodeLatitude #283

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Decoding Latitude Value

What is the expected output? What do you see instead?
Latitute is encode on 3 bytes, 
the code as in the src is:
int i1 = ((data[begin] & 0xFF) << 16) + ((data[begin + 1] & 0xFF) << 8) + 
(data[begin + 1] & 0xFF);

while the correct is:

int i1 = ((data[begin] & 0xFF) << 16) + ((data[begin + 1] & 0xFF) << 8) + 
(data[begin + 2] & 0xFF);

What version of the product are you using? On what operating system?
2.0.0.CR2 

Please provide any additional information below.

Original issue reported on code.google.com by TheCapti...@gmail.com on 27 May 2013 at 7:49

GoogleCodeExporter commented 9 years ago
Hello!

This is fixed now for 2.0.x-SNAPSHOT and 2.1 (MASTER) branches:

https://code.google.com/p/jss7/source/detail?r=0aed642f228b6e587edb680bbde30b6ab
dbd1e25

Original comment by serg.vet...@gmail.com on 5 Jun 2013 at 10:29