Project

General

Profile

Actions

Bug #5714

open

update_record_decoded does not use real record length when writing EF.MSISDN

Added by CHV over 1 year ago. Updated 7 months ago.

Status:
Stalled
Priority:
Normal
Assignee:
Category:
pySim libraries
Target version:
-
Start date:
10/16/2022
Due date:
% Done:

90%

Spec Reference:

Description

I'm using old regular cards for testing.

Class EF_MSISDN, method _encode_record_hex always assumes a rec_len of 15 which results in misaligned/invalid data if the real record length is different.
The encoded msisdn must always use the last 14 bytes in the record. This can only be achieved when the real record length is used.

Example:

select MF/ADF.USIM/EF.MSISDN
update_record_decoded 1 {"msisdn":"+491234567890"}
read_record_decoded 1
read_record 1

This may also concern updating EF.ADN records.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)