Anonymous | Login | Signup for a new account | 2024-03-29 12:19 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 | ||||
0000890 | Taste | [All Projects] ASN.1 Compiler v4 | public | 2019-11-09 17:15 | 2020-08-31 15:32 | ||||
Reporter | shd01 | ||||||||
Assigned To | gmamais | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Summary | 0000890: nCount field not initialised in fixed-size subtype | ||||||||
Description | When a fixed size subtype is defined from a variable-size parent, the C structure that is generated contains an "nCount" field, but that field is not initialised by the ACN decoding function. For example...
MyType ::= SEQUENCE (SIZE(1..128)) OF INTEGER END ...generates this code:
} MyType; typedef MyType MySubtype; ///////// test.c
} I think it would be preferable (and more defensive) to set the value of nCount, particularly if it is possible that a variable of the subtype might be assigned to a variable of the parent type in user code. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Issue History | |||
Date Modified | Username | Field | Change |
2019-11-09 17:15 | shd01 | New Issue | |
2019-11-09 17:17 | maxime | Assigned To |
=> gmamais |
2019-11-09 17:17 | maxime | Status |
new => assigned |
2019-11-16 15:00 | gmamais | Note Added: 0003681 | |
2019-11-16 15:00 | gmamais | Status |
assigned => resolved |
2019-11-16 15:00 | gmamais | Resolution |
open => fixed |
2020-08-31 15:32 | maxime | Status |
resolved => closed |
Copyright © 2000 - 2011 MantisBT Group |