Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big Parameters passed by value(more than the threshold value of 128 bytes) #657

Closed
bhanuprakasheagala-at-mbrdi opened this issue Aug 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working c++ C++ language generator
Milestone

Comments

@bhanuprakasheagala-at-mbrdi

Zserio version and language
Zserio: 2.1.2
Language: C++

Describe the bug
As per the documentation of Zserio, it can support up to 64 bytes of data. But there is an issue found from nds where there is 144 bytes of data getting sent through some type traits concept at compiler\extensions\cpp\runtime\src\zserio\Array.h.

https://github.com/ndsev/zserio/blob/master/compiler/extensions/cpp/runtime/src/zserio/Array.h

image

As per the Autosar guidelines checker, it has found the size passed as144 bytes. However, it's allowed threshold is 128 bytes of data.
Here, the size of Element Type is more than the supported size. The issue is due to large size of data being passed as a value instead of pass by reference.

@bhanuprakasheagala-at-mbrdi bhanuprakasheagala-at-mbrdi added the bug Something isn't working label Aug 20, 2024
@mikir mikir added the c++ C++ language generator label Aug 22, 2024
@mikir mikir added this to the 2.15 milestone Aug 22, 2024
@mikir
Copy link
Contributor

mikir commented Aug 22, 2024

OK, thanks a lot to point this out! We will plan to have a look to this issue during the current milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working c++ C++ language generator
Projects
None yet
Development

No branches or pull requests

2 participants