mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix to protect custom regional create against small values.
This commit is contained in:
parent
09afdb7669
commit
ecb0b44ba8
2 changed files with 3 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
11 October 2021: Wouter
|
11 October 2021: Wouter
|
||||||
- Fix chaos replies to have truncation for short message lengths,
|
- Fix chaos replies to have truncation for short message lengths,
|
||||||
or long reply strings.
|
or long reply strings.
|
||||||
|
- Fix to protect custom regional create against small values.
|
||||||
|
|
||||||
4 October 2021: Wouter
|
4 October 2021: Wouter
|
||||||
- Fix to add example.conf note for outbound-msg-retry.
|
- Fix to add example.conf note for outbound-msg-retry.
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ regional_create_custom_large_object(size_t size, size_t large_object_size)
|
||||||
struct regional*
|
struct regional*
|
||||||
regional_create_custom(size_t size)
|
regional_create_custom(size_t size)
|
||||||
{
|
{
|
||||||
|
if(size < sizeof(struct regional))
|
||||||
|
size = sizeof(struct regional);
|
||||||
return regional_create_custom_large_object(size,
|
return regional_create_custom_large_object(size,
|
||||||
REGIONAL_LARGE_OBJECT_SIZE);
|
REGIONAL_LARGE_OBJECT_SIZE);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue