diff options
| author | Frank Denis <124872+jedisct1@users.noreply.github.com> | 2024-03-12 23:56:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-12 22:56:28 +0000 |
| commit | 153ba46a5b20f178d48ef2f09e0e638a3749af0e (patch) | |
| tree | e22ac3519e43eeb4e82511f572a1bcdb5a454576 /lib/std/bounded_array.zig | |
| parent | b8920bceb79756aead8635d156a6e8bffcc1ccea (diff) | |
| download | zig-153ba46a5b20f178d48ef2f09e0e638a3749af0e.tar.gz zig-153ba46a5b20f178d48ef2f09e0e638a3749af0e.zip | |
{aegis,aes_gcm}: fix overflow with large inputs on 32-bit systems (#19270)
These systems write the number of *bits* of their inputs as a u64.
However if `@sizeOf(usize) == 4`, an input message or associated data
whose size is > 512 MiB could overflow.
On 64-bit systems, it is safe to assume that no machine has more than
2 EiB of memory.
Diffstat (limited to 'lib/std/bounded_array.zig')
0 files changed, 0 insertions, 0 deletions
