Skip to main content

+1 866 653-6233 LinkedIn Software Expert Witness Directory

About Us Contact Us

Barr Group Software Experts

Barr Group Software Experts

Main navigation

  • Expert Services
    • Consulting Experts in Software and Electronics
    • Expert Reports by Testifying Software Experts
    • Reverse Engineering and Forensic Analysis
    • Software Source Code Review and Analysis
  • Areas of Expertise
    • Left Side
      • Artificial Intelligence
      • Automotive Systems
      • Cloud Computing
      • Computer Security
      • Consumer Electronics
      • Electronic Circuits
      • Enterprise Software
      • Financial Technology
      • Firmware and IoT
    • Right Side
      • Industrial Controls
      • Mechanical Design
      • Medical Devices
      • Military & Aerospace
      • Mobile Devices & Apps
      • Optical Equipment
      • Renewable Energy
      • Signal Processing
      • Telecommunications
  • Matters & Venues
    • Patent Infringement and Invalidity Experts
    • Software Copyright and Trade Secrets Experts
    • Product Liability and Failure Analysis Experts
    • Contract Disputes and Software Project Failures
    • Venues and Clients
  • Directory
  • Case Studies
    • DirecTV Anti-Piracy
    • Samsung Software Copyright
    • Toyota Runaway Cars
  • Resources
    • Expert Witness Blog
    • Source Code Review in Litigation
    • Software Source Code Discovery

Dead Code, the Law, and Unintended Consequences

  1. Home
  2. Expert Witness
  3. Dead Code, the Law, and Unintended Consequences
Posted August 28, 2018

Printable PDF

by Michael Barr

Dead code is source code that is not executed in the final system. It comes in two forms. First, there is dead code that is commented out or removed via #ifdef’s. That dead code has no corresponding form in the binary. Another form of dead code is present in the binary but cannot be or is never invoked. In either case, dead code is a vestige or unnecessary part of the product.

The Legal Consequences of Dead Code

Dead code has been frequently encountered when conducting source code reviews for litigation. The presence of dead code can have unintended legal consequences and several scenarios have been observed in which dead code heightened the probability of a loss in court.

Scenario 1:  Dead code implements part (or all) of the algorithm.

When a patent infringement suit is brought against an electronics or software company, one or more versions of the involved product's relevant source code must be produced to the plaintiff's legal team.

Both the patent owner’s and the plaintiff's expert(s) will examine the source code(s) to identify portions of the code that implement each part of the algorithm. If one of the identified parts is implemented in dead code that becomes part of the binary, the product may still infringe an asserted claim of the patent–even if it is never invoked.

Tip:  It is left to the legal teams to determine if dead code does legally infringe.  However, it is possible that neither side’s software expert(s) will notice it is dead.  It is also possible that the judge or jury won’t be convinced by a dead code defense.

Scenario 2: Dead code leads to overly-complex and vulnerable code.

In cases such as a product liability suit involving injury or death, a software expert examining the source code may use poor code quality as a basis of their opinion. This scenario can occur when the reviewed source code is overly-complex and riddled with commented out code and/or preprocessing directives.

Source code that is hard to read is harder to maintain. Code that is hard to read and maintain is also more likely to contain bugs. In such a scenario, the defendant's engineering team may appear to be sloppy or incompetent to the jury.

Tip: Overly-complex code also increases the cost of source code reviews – as both side’s experts will need to spend more time examining the code to understand it fully.

In a source code copyright (or copyleft) suit the mere presence of another party’s source code may be sufficient to prove infringement–even if it is isn’t actually built into the binary.

Tip:  Litigators should be aware that developers of electronics and software products are at risk of code containing files or functions of open source software that, by their mere existence in the source code, attaches an open source license to all of the proprietary code.

Barr Group's team of electronics and software expert witnesses provide experienced and unbiased source code reviews, expert reports and testimony for product liability, patent infringement, software copyright, and trade secrets litigation involving computer-based technology and software.  HIRE AN EXPERT

  • Back to Main
  • Share
  • Facebook
  • Twitter
  • LinkedIn

Request an Expert

(866) 653-6233

Blog Categories

assembly
C
coding standards
communications
debugging
electronics
Java
real-time
RTOS
safety
security
tools
user interfaces
Barr Group logo
Call us

Expert Services

  • Source Code Review Services
  • Expert Witness Directory
  • Reverse Engineering Services
  • Expert Reports & Testimony
  • How-To Technical Articles
  • Engineering Services

Latest Insights

  • Payment Processing and e-Payments Fraud
  • Albert Einstein Expert Witness
  • Medical Device Litigation and FDA 510(k)
  • Personality Traits of the Best Expert Witnesses

Website contents copyright © 2012-2025 by Barr Group. | Barr Group's logo is a U.S.-registered ® trademark.

SITEMAP  |  PRIVACY