Page MenuHomeVyOS Platform

image-installer: cleanup() uses mutable default lists that leak between calls
Open, NormalPublicBUG

Description

cleanup() in the image installer declares list defaults (mounts, remove_items) and appends to them. Entries from one call leak into later calls in the same process.

Fix: default to None and copy the arguments inside the function.

Details

Version
rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav triaged this task as Normal priority.Mon, Nov 30, 3:52 PM
Viacheslav changed the subtype of this task from "Task" to "Bug".