Array with size > 8GB generated, invalid on 32-bit targets
Open
- 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
Assessment
This issue has not been assessed yet.