]> git.puffer.fish Git - matthieu/frr.git/commit
mgmtd: Fixing code coverity issues in mgmtd
authorrgirada <rgirada@vmware.com>
Fri, 24 Mar 2023 10:09:42 +0000 (10:09 +0000)
committerrgirada <rgirada@vmware.com>
Wed, 5 Apr 2023 10:29:14 +0000 (10:29 +0000)
commit93d4e355d87ed6211031d22cd67f229246ec98ad
treeca3d21135cea306c67c0b00f1c7f1d04c6a9a8ad
parent27a0311fcc20cba1247cce68c265ba026ca32775
mgmtd: Fixing code coverity issues in mgmtd

Description:
the following list of coverity issues seen in mgmtd code.
1. CID 1536832:  Memory - corruptions  (OVERLAPPING_COPY)
   /mgmtd/mgmt_history.c: 85 in mgmt_history_create_cmt_rec()
2. CID 1536831:  Error handling issues  (NEGATIVE_RETURNS)
   /mgmtd/mgmt_be_server.c: 123 in mgmt_be_server_start()
3. CID 1536830:  Resource leaks  (RESOURCE_LEAK)
   /mgmtd/mgmt_history.c: 146 in mgmt_history_read_cmt_record_index()
4. CID 1536829:  Error handling issues  (NEGATIVE_RETURNS)
   /mgmtd/mgmt_fe_server.c: 123 in mgmt_fe_server_start()
5. CID 1536828:  Possible Control flow issues  (DEADCODE)
   /mgmtd/mgmt_txn.c: 1859 in mgmt_txn_get_config()
6. CID 1536827:  Null pointer dereferences  (NULL_RETURNS)
           /mgmtd/mgmt_ds.c: 526 in mgmt_ds_delete_data_nodes()

Signed-off-by: Rajesh Girada <rgirada@vmware.com>
mgmtd/mgmt_be_server.c
mgmtd/mgmt_ds.c
mgmtd/mgmt_fe_server.c
mgmtd/mgmt_history.c
mgmtd/mgmt_txn.c