...
Code Block | ||
---|---|---|
| ||
...
...
size_t secret_size, new_secret_size;
...
if (secret_size > SIZE_MAX/2) {
/* handle error condition */
}
secret = realloc(secret, secret_size * 2);
...
|
...
...
Code Block | ||
---|---|---|
| ||
...
...
size_t secret_size, new_secret_size;
...
if (secret_size > SIZE_MAX/2) {
/* handle error condition */
}
secret = realloc(secret, secret_size * 2);
...
|
...