intel / intel/yarpgen

Array with size > 8GB generated, invalid on 32-bit targets

Open
#183 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
570
Forks
65
PR merge metrics
No merged PRs in 30d

Description

With the seed 10690367908864332818 (on commit 29a67b2def8b2031b8f3ae033ba45675d216a5ab), I see YARPGen producing a very large array (on line 37 in this case):
```c
short arr_16 [24] [24] [24] [24] [24] [24] [24] ;
```
which is more than 8GB and therefore clearly can't work on 32-bit targets (see e.g. https://godbolt.org/z/Pc9773zxq).

More generally, I think it would be useful to have tuning parameters to limit:

- The maximum size of an individual array in YARPGen.
- The total size of all arrays / global variables produced by YARPGen.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.