---
title: Cppcheck Open-Source 2.9 released
description: Update to cppcheck open-source.
---

[![a (1252)-2](https://www.cppcheck.com/hubfs/a%20(1252)-2.jpeg)](https://www.cppcheck.com)

- [Pricing](https://www.cppcheck.com/plans-pricing)
- [News](https://www.cppcheck.com/product-news)
- [Code Quality](https://www.cppcheck.com/code-quality)
- [Safety Compliance](https://www.cppcheck.com/product-news/safety)
- [Security Compliance](https://www.cppcheck.com/product-news/security)
- [About](https://www.cppcheck.com/about)
  
    - [About us](https://www.cppcheck.com/about)
    - [Our partners](https://www.cppcheck.com/our-fantastic-partners)

[Star us on GitHub](https://github.com/danmar/cppcheck)

Software update

# Cppcheck Open-Source 2.9 released

Update to cppcheck open-source.

[Daniel Marjamäki](https://www.cppcheck.com/product-news/author/daniel-marjamäki)

 Aug 28, 2022

<http://www.linkedin.com/shareArticle?mini=true&url=https://www.cppcheck.com/product-news/cppcheck-open-source-2.9-released&utm_medium=social&utm_source=linkedin>

[Software update](https://www.cppcheck.com/product-news/tag/software-update) [Cppcheck open-source](https://www.cppcheck.com/product-news/tag/cppcheck-open-source)

We are happy to announce the release of Cppcheck Open-Source 2.9!

Cppcheck Open-Source 2.9 reintroduces checks for negative allocations and VLA sizes from version 1.87, allows configuration for `pipe()` buffer size, and enhances Windows exception handling output. It introduces options to disable specific exception handling features and improves detection of redundant `std::string` and container operations. A new match function for addons enhances pattern matching capabilities. The release also extends math function evaluation in ValueFlow, improves lifetime analysis, propagates condition values, and adds debug intrinsics for detailed analysis.

Release notes:

- restored check for negative allocation (new\[\]) and negative VLA sizes from cppcheck 1.87 (LCppC backport)
- replaced hardcoded check for pipe() buffer size by library configuration option (LCppC backport)
- on Windows the callstack is now being written to the output specific via "--exception-handling"
- make it possible to disable the various exception handling parts via the CMake options "NO\_UNIX\_SIGNAL\_HANDLING", "NO\_UNIX\_BACKTRACE\_SUPPORT" and "NO\_WINDOWS\_SEH"
- detect more redundant calls of std::string::c\_str(), std::string::substr(), and unnecessary copies of containers
- Add a `match` function to addon similiar to `Token::Match` used internally by cppcheck: 
    - `|` for either-or tokens(ie `struct|class` to match either `struct` or `class`)
    - `!!` to negate a token
    - It supports the `%any%`, `%assign%`, `%comp%`, `%name%`, `%op%`, `%or%`, `%oror%`, and `%var%` keywords
    - It supports `(*)`, `{*}`, `[*]`, and `<*>` to match links
    - `@` can be added to bind the token to a name
    - `**` can be used to match until a token
- Add math functions which can be used in library function definition. This enables evaluation of more math functions in ValueFlow
- Further improve lifetime analysis with `this` pointers
- Propagate condition values from outer function calls
- Add debug intrinsics `debug_valueflow` and `debug_valuetype` to show more detail including source backtraces

## Similar posts

Software update

### [Cppcheck Premium 22.2.2 Released!](https://www.cppcheck.com/product-news/cppcheck-premium-22.2.2-released)

Cppcheck Premium 22.2.2 is now available with new CERT C 2016 chapter rules and improved MISRA C 2012 checking. Stay updated with the latest software...

 Daniel Marjamäki  Feb 27, 2022

Software update

### [Cppcheck Premium 23.2.2 released](https://www.cppcheck.com/product-news/cppcheck-premium-23.2.2-released)

Cppcheck Premium 23.2.2 released with bug fixes in AUTOSAR and CERT checking, completing CERT C++ rule checks and reducing false positives in...

 Daniel Marjamäki  Feb 26, 2023

Software update

### [Cppcheck Premium 22.2.1 released](https://www.cppcheck.com/product-news/cppcheck-premium-22.2.1-released)

Cppcheck Premium 22.2.1 released with new features including self-registration script, void function checks, and unused private member variable...

 Daniel Marjamäki  Feb 14, 2022

![Cppcheck Premium](https://www.cppcheck.com/hubfs/Cppcheck%20Premium.png)

Cppcheck Solutions AB

S:t Göransgatan 95

112 45 Stockholm, Sweden 

 

For sales inquires, please use the form above.

 

For legal, IR or supplier inquires, please contact us through:

[par.jelger@cppcheck.com](mailto:par.jelger@cppcheck.com)

<https://www.linkedin.com/company/77044657><https://github.com/danmar/cppcheck>

### More information

- [About us](https://www.cppcheck.com/about)
- [An introduction to static code analysis](https://www.cppcheck.com/what-is-static-code-analysis)
- [EULA](https://www.cppcheck.com/eula)
- [Privacy policy](https://www.cppcheck.com/privacy-policy)

### Help & Contact

- [Known Issues](https://files.cppchecksolutions.com/known-issues-jira.html)
- [Install & Register – Trial](https://www.cppcheck.com/cppcheck-premium-installation-trial)
- [Install & Register – Individual License](https://www.cppcheck.com/cppcheck-premium-installation-individual)
- [Install & Register – Enterprise License](https://www.cppcheck.com/cppcheck-premium-installation-enterprise)

Copyright © 2026 Cppcheck Solutions AB. 

VAT SE559293880601

 Cookie Settings