Skip to content

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

@acoplan-arm

Description

@acoplan-arm

With the seed 10690367908864332818 (on commit 29a67b2), I see YARPGen producing a very large array (on line 37 in this case):

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions