The original source doesn't get changed by any one. Changes to the code is controlled by version control. Probably the most popular usage of it is git and github. For example I, as a developer (which I am not), do not make changes to the code but get a copy of the code in a branch. I can modify the branch but not the original code. Any submission to change the original code I choose to make would be reviewed and then decided whether to accept some of the changes, all of the changes or none of the changes.
This has been a very effective means at controlling the original code so that the software doesn't get worse from intentional or unintentional changes.
Other's that know details about this may jump in and provide more details.