Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Convert-ASN1 CPAN distribution.

Report information
The Basics
Id: 13681
Status: resolved
Priority: 0/
Queue: Convert-ASN1

People
Owner: Nobody in particular
Requestors: javier.gutierrez [...] tap3edit.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.19
Fixed in: 0.21



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.
Download indef_problem.zip
application/x-zip-compressed 5.3k

Message body not shown because it is not plain text.

Here the patch I'm currently using. It is marked with "# -->"

Message body is not shown because it is too large.

[guest - Thu Aug 25 10:58:45 2005]: Show quoted text
> Here the patch I'm currently using. > It is marked with "# -->"
By the way. I'm still using this patch I made some time ago. There is a better way to avoid the problem with indefinite lengths? Kind regards. Javier GutiƩrrez.