My colleague Mr. Malinochkin and I, and a lot of other people, write open-source software. We're trying to provide something useful to the world.
I am doing so from the US. I've never been told by my government to insert particular code. Then again,
- my code isn't that widely used outside some specialized areas and
- I can hear every one of you thinking "he would say that, wouldn't he?" [0]
Both Mr. Malinochkin and I live in regimes where we might be told to mangle our code. Anybody using our code has to take that into account.
Beyond that, plenty of people working at Google, Apple, Microsoft, etc. have relatives in China and Russia. I'm sure the spy agencies of those countries have thought about saying "nice bunch of relatives you have back here; it'd be a shame if something happened to them." And the companies involved produce closed source, providing greater opportunity for skulduggery.
Bottom line : you can't trust anybody these days. Including me. Or Mr. Malinochkin. And you already had plenty of reasons not to trust Google et. al. anyway.
[0] Were I served an NSL... well, I might "say that". I have a family to think of. But I'd also consider it my obligation, to users of my code and to my country, to resist it as far as possible.