Schecker
A Security/Safety Checker for C/C++ based on Clang-Tidy and Coccinelle.
Usage
pip install schecker
#!/usr/bin/python
import sys
import schecker
paths = [ './path/to/your/c/project' ]
excludes = [ './path/to/your/c/project/third-party' ]
scripts = ['schecker/tests/cocci-scripts/']
schecker = schecker.Schecker(paths, excludes=excludes)
schecker.options_coccinelle(script_dirs=scripts)
# now start the actual test, this may take some time
schecker.check_all(sys.stderr)
Dependencies
Schecker depends on clang-tidy and coccinelle, though it is possible to disable
the modules seperatly. E.g. you don't need coccinelle: Schecker(..., modules_disabled=['coccinelle'])
sudo aptitude install clang-tidy coccinelle
Documentation
Coccinelle
Getting Comfy with Coccinelle
- https://lwn.net/Articles/315686/
- https://lwn.net/Articles/380835/
- https://events.static.linuxfound.org/sites/events/files/slides/Introduction%20to%20Coccinelle.pdf
Defect Spotting with Coccinelle
Metadata
Release files for schecker 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| schecker-0.2.0.tar.gz | 4.4 kB | Without provenance | Details for schecker-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| schecker-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for schecker-0.2.0-py2.py3-none-any.whl |
Total release size: 10.3 kB
Release files / schecker-0.2.0.tar.gz
| Download URL | schecker-0.2.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff9da17d58680a88bc2f60e7c60bd68deda21731393f4c98e316b3e6e9f3e327
|
|
BLAKE2b-256 checksum How to use checksums |
9c60ad37d99c7b5dd032f6cf54b27dee090e3e2df0cf4fba870e725383fe0ade
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / schecker-0.2.0-py2.py3-none-any.whl
| Download URL | schecker-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b74e3859993c7fadb6e498a744a74d156f01b1b45363fcb10f9213d985def983
|
|
BLAKE2b-256 checksum How to use checksums |
4704786e265398c41676f21d55a01f4de1ef0e66f672044c28b24655dc09028f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for schecker 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.