We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
union U { int a; char bytes[3333333333333333333]; };
panic: integer overflow /Users/ehaas/source/arocc/src/aro/record_layout.zig:259:59: 0x105d1999e in layoutRegularField (arocc) self.size_bits = @max(self.size_bits, offset_bits + size_bits); ^ /Users/ehaas/source/arocc/src/aro/record_layout.zig:71:57: 0x105ca00aa in layoutFields (arocc) fld.layout = self.layoutRegularField(field_attrs, type_layout); ^ /Users/ehaas/source/arocc/src/aro/record_layout.zig:577:33: 0x105beb0e1 in compute (arocc) context.layoutFields(rec); ^
The text was updated successfully, but these errors were encountered:
All additions/multiplications in the record layout code should be audited for overflows; this will trigger a different one:
struct S { __attribute__((aligned(268435456))) int x; };
Sorry, something went wrong.
record_layout: Account for overflow in layout calculations
67f8cd8
Closes Vexu#678
0023d37
ed80692
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: