diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-01-05 12:44:23 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-01-05 19:39:56 -0500 |
| commit | 41c17d61a274d3e565de6ff2e0d6a33f1db08f71 (patch) | |
| tree | b69018ea8e44068397f210e4d7df6128d12416b4 /lib/json.c | |
| parent | 07da32705431484fe18adabb59f5fef94a4fb339 (diff) | |
lib: Stop potential uninitialized memory access
VRF_UNKNOWN = MAX_INT16_T
The vrf macros to determine where in the bitmap something belongs
assume that the valid values of a vrf are 0 - (MAX_INT16 - 1)
so when they attempt to determine where to look in the bitmap
for VRF_DEFAULT, we can get invalid reads of memory.
This happens because bgp can create vrf's with VRF_UNKNOWN
when we get configuration for a vrf before we've been actually
created in zebra.
Ticket: CM-14090
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/json.c')
0 files changed, 0 insertions, 0 deletions
