Skip to content
Commit 8efe9921 authored by Marta Rybczynska's avatar Marta Rybczynska Committed by Richard Purdie
Browse files

cve-update-db-native: avoid incomplete updates

The database update has been done on the original file. In case of
network connection issues, temporary outage of the NVD server or
a similar situation, the function could exit with incomplete data
in the database. This patch solves the issue by performing the update
on a copy of the database. It replaces the main one only if the whole
update was successful.

See https://bugzilla.yoctoproject.org/show_bug.cgi?id=14929



Reported-by: default avatarAlberto Pianon <alberto@pianon.eu>
Signed-off-by: default avatarMarta Rybczynska <marta.rybczynska@linaro.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
parent bd22b705
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment