Copyright term
How long a work stays under copyright before entering the public domain – for source code, considerably longer than any computer lasts.
The Berne Convention sets a floor of the author's life plus 50 years. The EU harmonised on life plus 70 in 1993, and the US followed in 1998 with the Copyright Term Extension Act, better known as the Sonny Bono Act or, after its most famous beneficiary, the Mickey Mouse Protection Act. Lawrence Lessig took it to the Supreme Court in Eldred v. Ashcroft and lost 7–2 in 2003. The mouse himself, as Steamboat Willie, only went free on 1 January 2024.
Applied to software the numbers verge on parody. A game written in 1985 by a 30-year-old will probably stay protected well into the 2100s, long after every machine able to run it has been recycled. Which is why abandonware, however abandoned, is legally just piracy.