]> git.proxmox.com Git - mirror_frr.git/commit
lib: Link State memory corruption
authorOlivier Dugeon <olivier.dugeon@orange.com>
Fri, 21 Apr 2023 16:09:28 +0000 (18:09 +0200)
committerOlivier Dugeon <olivier.dugeon@orange.com>
Fri, 21 Apr 2023 16:09:28 +0000 (18:09 +0200)
commit871b46e7eb86009f1bea3cf397a8d2c38ceacd40
treeb701ce6347a454b029cc08d42a53e3c5a1a2a09a
parent0633fb7856e75f5631d25386eb240b49d1f5cb0d
lib: Link State memory corruption

In function ls_find_subnet(), prefix argument is directly copied into
subnet.key structure to find corresponding subnet in RB Tree. This could leadr
to a memory corruption. Function prefix_copy() must be used instead.

This patch replaces the direct prefix copy by a call to prefix_copy() function
to avoid this memory issue.

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
lib/link_state.c