Too right! I seem to be encoutering garbage software all the time, either in use, or by expanding an existing project (including widely available, popular OS projects).
Big fan of treating all inputs and outputs to and from functions as hostile. So parameters and return values as well. Always interesting how fast the bugs turn up once you start enforcing that.