FreeCalypso > hg > fc-sim-tools
diff uicc/select.c @ 89:db131929ee96
fc-uicc-tool: extended readef ported over from fc-simtool
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 11 Apr 2021 04:17:58 +0000 |
parents | 0e46bbb801e0 |
children |
line wrap: on
line diff
--- a/uicc/select.c Sun Apr 11 04:01:21 2021 +0000 +++ b/uicc/select.c Sun Apr 11 04:17:58 2021 +0000 @@ -427,6 +427,11 @@ return(-1); } efs->total_size = (tlv[2] << 8) | tlv[3]; + if (efs->total_size > 0x8000) { + fprintf(stderr, + "error: transparent file size exceeds UICC protocol limit\n"); + return(-1); + } return(0); case 0x02: case 0x06: