Anonymous | Login | Signup for a new account | 2024-03-28 18:55 UTC |
Main | My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000888 | Taste | [All Projects] ASN.1 Compiler v4 | public | 2019-11-07 13:09 | 2020-08-31 15:32 | ||||
Reporter | shd01 | ||||||||
Assigned To | gmamais | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Summary | 0000888: Bad ACN Decoder generated if ACN key field does not precede its dependent | ||||||||
Description | Using this ASN... Test DEFINITIONS ::= MyEnum ::= ENUMERATED {a,b,c} T-Thing ::= CHOICE { T-ThingHolder ::= SEQUENCE { END ... with this ACN ... Test DEFINITIONS ::= T-ThingHolder [] { T-Thing END ... I get an ACN Decoder that compiles but which crashes at runtime. The problem is that the code generator expects the key field "selector" to be located before the "thing" in the encoded packet. flag T_ThingHolder_ACN_Decode(T_ThingHolder* pVal, BitStream* pBitStrm, int* pErrCode)
} | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | shit.acn [^] (269 bytes) 2019-11-07 13:37 | ||||||||
Notes | |
(0003667) shd01 (reporter) 2019-11-07 13:23 edited on: 2019-11-07 13:34 |
The above ACN looks wrong because I didn't escape it. Here is the correct one (I hope):
|
(0003668) shd01 (reporter) 2019-11-07 13:35 edited on: 2019-11-07 13:37 |
Nope, give up. You'll have to imagine the parameters in the ACN EDIT: I've uploaded a text file |
(0003670) gmamais (developer) 2019-11-07 17:10 |
I understand the erroneous behavior of the generated code, but I am not sure I understand the requirement. or (2) |
(0003672) shd01 (reporter) 2019-11-08 18:22 |
Ah yes, I see the issue. I guess this should be (1), report an error. And perhaps I should not have made this a "major". |
(0003682) gmamais (developer) 2019-11-17 09:41 |
fixed in the latest GitHub commit. |
Issue History | |||
Date Modified | Username | Field | Change |
2019-11-07 13:09 | shd01 | New Issue | |
2019-11-07 13:23 | shd01 | Note Added: 0003667 | |
2019-11-07 13:23 | shd01 | Note Edited: 0003667 | View Revisions |
2019-11-07 13:24 | shd01 | Note Edited: 0003667 | View Revisions |
2019-11-07 13:24 | shd01 | Note Edited: 0003667 | View Revisions |
2019-11-07 13:25 | shd01 | Note Edited: 0003667 | View Revisions |
2019-11-07 13:30 | shd01 | Note Edited: 0003667 | View Revisions |
2019-11-07 13:30 | shd01 | Note Edited: 0003667 | View Revisions |
2019-11-07 13:34 | shd01 | Note Edited: 0003667 | View Revisions |
2019-11-07 13:35 | shd01 | Note Added: 0003668 | |
2019-11-07 13:37 | shd01 | File Added: shit.acn | |
2019-11-07 13:37 | maxime | Assigned To |
=> gmamais |
2019-11-07 13:37 | maxime | Status |
new => assigned |
2019-11-07 13:37 | shd01 | Note Edited: 0003668 | View Revisions |
2019-11-07 17:10 | gmamais | Note Added: 0003670 | |
2019-11-08 18:22 | shd01 | Note Added: 0003672 | |
2019-11-17 09:41 | gmamais | Note Added: 0003682 | |
2019-11-17 09:41 | gmamais | Status |
assigned => resolved |
2019-11-17 09:41 | gmamais | Resolution |
open => fixed |
2020-08-31 15:32 | maxime | Status |
resolved => closed |
Copyright © 2000 - 2011 MantisBT Group |