Files
pysim/pySim
Philipp Maier f94f366cf9 runtime: check record/file size before write
When writing data to a transparent or linear fixed (record oriented)
and the data to write exceeds the record/file size, then the UICC will
respond with an error "6700: Checking errors - Wrong length"

In particular when the data is supplied as a JSON object and not as a
hex string, it may not be immediately obvious to the average user what
the problem actually is.

Let's check the record/file size before writing the data and raise an
exception in case the data excieeds the record/file size. Let's also
print an informative string message in case the data length is less
than the record/file size to make the user aware of unwritten bytes
at the end of a record/file.

Related: OS#6864
Change-Id: I7fa717d803ae79398d2c5daf92a7336be660c5ad
2025-10-28 13:39:35 +01:00
..
2025-09-24 17:59:17 +00:00
2025-09-24 17:59:17 +00:00
2025-09-24 17:59:17 +00:00
2025-09-24 17:59:17 +00:00
2025-09-24 17:59:17 +00:00
2025-09-24 17:59:17 +00:00
2025-09-24 17:59:17 +00:00
2025-09-24 17:59:17 +00:00
2024-06-10 08:59:39 +02:00
2025-09-24 17:59:17 +00:00
2025-09-24 17:59:17 +00:00
2025-05-07 19:35:54 +02:00
2025-09-24 17:59:17 +00:00
2025-09-24 17:59:17 +00:00
2024-09-03 21:57:47 +02:00
2025-09-24 17:59:17 +00:00
2025-09-24 17:59:17 +00:00