summaryrefslogtreecommitdiff
path: root/lib/json.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-01-05 12:44:23 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-01-05 19:39:56 -0500
commit41c17d61a274d3e565de6ff2e0d6a33f1db08f71 (patch)
treeb69018ea8e44068397f210e4d7df6128d12416b4 /lib/json.c
parent07da32705431484fe18adabb59f5fef94a4fb339 (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