vlm / asn1c

The ASN.1 Compiler
http://lionet.info/asn1c/
BSD 2-Clause "Simplified" License
1.03k stars 553 forks source link

Extensions surrounded by root components encoded incorrectly in BER #19

Open vlm opened 12 years ago

vlm commented 12 years ago

See https://sourceforge.net/projects/asn1c/forums/forum/357921/topic/5450713:

counselour commented 12 years ago

I tried hacking around this by turning off the root and extension splitting in asn1fix_constr.c, but the code in constr_SEQUENCE.c where IN_EXTENSION_GROUP is used seems to really rely on the extensions being at the end. And, there is code in the compiler that marks everything after the first extension marker as optional. I got a few things working but the big gprs and timon data flummoxed me. So, I have to undo the hack.

If you think you have a way to fix this, let me know what needs to be done. I can certainly try to implement a solution.