3 ms·
Arguments to sizeof aren’t actually evaluated (except for variably-modified-types, AKA VLAs, but don’t use those).
by david2ndaccount 3y ago
Arguments to sizeof aren’t actually evaluated (except for variably-modified-types, AKA VLAs, but don’t use those).
- uecker 3y agoPlease use those. They are useful, make code clearer, improve bounds checking, ... Don't let attackers influence the size of a buffer (neither for VLAs nor for heap allocations).