Subject: | Decoding problem with indefinite length |
Module: Convert-ASN1-0.19
perl: v5.8.3 built for i586-linux-thread-multi
Hallo dear Graham,
I hope you are fine. Unfortunately I got another problem here, this time with indefinite length files. In the moment when _decode() tries to guess an OPTIONal tag which is in the definition but not in the binary file, and this tag is CHOICE, the function shifts (by _decode_tl) a length out of the stack @$larr. This causes the rest of the process to crash.
Attached I send you an example (indef_problem.zip). With following files:
indef_create: create a file with undefinite length.
indef_asn1.txt: is the asn1 definition for the indef_file.
indef_file: file created with indef_create.
indef_dec: try to decode the indef_file.
_decode_pm: I made a small workaround which fixes the problem for indef_file, but does not work for other bigger files I have.
Thank you very much.
Cheers!
Javier GutiƩrrez.
Message body not shown because it is not plain text.