EVerest / EVerest/cbexigen

init_iso20_SessionSetupReqType does not initialize all members

Open
#132 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
69
Forks
36
Avg merge
3h 30m
Merged PRs (30d)
1

Description

### Describe the bug

Code generated for these init structures is:

`
void init_iso20_SessionSetupReqType(struct iso20_SessionSetupReqType* SessionSetupReqType) {
(void) SessionSetupReqType;
}

void init_iso20_SessionSetupResType(struct iso20_SessionSetupResType* SessionSetupResType) {
(void) SessionSetupResType;
}`

Both contain arrays where their length is not set to zero.

### To Reproduce

See code generated in iso20_CommonMessages_Datatypes.c of AC DER branch of libcbv2g.

https://github.com/EVerest/libcbv2g/commit/723c024c418f92674c07092a5baa260fa60c03ec

### Anything else?

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting iso20_CommonMessages_Datatypes.c from the linked AC DER commit and trace the generated init functions back to cbExiGen's Python generator entry point. Regenerate the ISO 20 session setup types and verify that each array length is initialized to zero.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.