3
I Use This!
Moderate Activity
Analyzed 1 day ago. based on code collected 1 day ago.

Project Summary

A unit testing framework for C with mocking. cmocka only requires a test application is linked with the standard C library which minimizes conflicts with standard C library headers. It is the successor (fork) of cmockery.

Tags

c development framework library mock mockfunctions mocking mock-object mockobject mockobjects software_development testing unit-testing unit_testing unittesting

Apache License 2.0
Permitted

Commercial Use

Modify

Distribute

Place Warranty

Sub-License

Private Use

Use Patent Claims

Forbidden

Hold Liable

Use Trademarks

Required

Include Copyright

State Changes

Include License

Include Notice

These details are provided for information only. No information here is legal advice and should not be used as such.

Project Security

Vulnerabilities per Version ( last 10 releases )

There are no reported vulnerabilities

Project Vulnerability Report

Security Confidence Index

Poor security track-record
Favorable security track-record

Vulnerability Exposure Index

Many reported vulnerabilities
Few reported vulnerabilities

Did You Know...

  • ...
    in 2016, 47% of companies did not have formal process in place to track OS code
  • ...
    search using multiple tags to find exactly what you need
  • ...
    there are over 3,000 projects on the Open Hub with security vulnerabilities reported against them
  • ...
    check out hot projects on the Open Hub
About Project Security

Languages

C
59%
C++
28%
CMake
9%
6 Other
4%

30 Day Summary

Dec 29 2025 — Jan 28 2026

12 Month Summary

Jan 28 2025 — Jan 28 2026
  • 129 Commits
    Up + 100 (344%) from previous 12 months
  • 9 Contributors
    Up + 2 (28%) from previous 12 months

Static Analysis ( Generated by Coverity Scan for cmocka )

Repository URL: https://git.cryptomilk.org/projects/cmocka.git

Version: cmocka-1.1.5-380-g7b5827b

2026-01-28
Last Analyzed
26,082
Lines of Code Analyze
0.27
Defect Density

Defects by status for current build

23
Total defects
7
Outstanding
8
Fixed

CWE Top 25 defects

ID CWE-Name Number of Defects
676 Use of Potentially Dangerous Function 7