In the Wikipedia entry for the original 1973 Westworld it mentions the computer scientist scoffing at the idea of 'an infectious virus that affects computers'.
Is there an earlier than this sci fi work (novel or film etc) that mentions a virus that only infects computers?
Extract from the Wikipedia entry:
The technicians running Delos notice problems beginning to spread like an infection among the androids: the robots in Romanworld and Medievalworld begin experiencing an increasing number of breakdowns and systemic failures, which are said to have spread to Westworld.
When one of the supervising computer scientists scoffs at the "analogy of an infectious disease," he is told by the chief supervisor "We aren't dealing with ordinary machines here. These are highly complicated pieces of equipment, almost as complicated as living organisms. In some cases, they've been designed by other computers. We don't know exactly how they work."