aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Random
diff options
context:
space:
mode:
authorFrank Denis <124872+jedisct1@users.noreply.github.com>2024-03-12 23:56:28 +0100
committerGitHub <noreply@github.com>2024-03-12 22:56:28 +0000
commit153ba46a5b20f178d48ef2f09e0e638a3749af0e (patch)
treee22ac3519e43eeb4e82511f572a1bcdb5a454576 /lib/std/Random
parentb8920bceb79756aead8635d156a6e8bffcc1ccea (diff)
downloadzig-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/Random')
0 files changed, 0 insertions, 0 deletions