mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-14 20:20:06 +09:00
3037e5eee0
The migration at db.go:680 appends validated tags to existing tags using append(existingTags, validatedTags...) where existingTags aliases node.Tags. When node.Tags has spare capacity, append writes into the shared backing array, and the subsequent slices.Sort corrupts the original. Clone existingTags before appending to prevent aliasing.