vmg/sundown
Standards compliant, fast, secure markdown processing library in C
- Repository: https://github.com/vmg/sundown
- Commit:
37728fb2d7137ff7c37d0a474cb827a8d6d846d8 - Generated: 2026-11-13T23:31:58+00:00
- Scorer 0.1.0, scoring prov-4+qual-2+sec-2, report schema v2
Scores
| Pillar | Score | Signal | Confidence | Coverage |
|---|---|---|---|---|
| AI provenance (estimated AI-generated share) | 0 | none-detected | 65% | 100% |
| Code quality | 39 | poor | 90% | 100% |
| Security | 71 | adequate | 85% | 100% |
AI provenance
No AI attribution or AI-consistent velocity signals detected.
- Explicitly attributed share (lower bound): 0.0%
- Unattributed share in AI-consistent velocity bursts: 0.0%
- Estimated AI-generated share: 0.0%
| Month | Lines added | Attributed to AI |
|---|---|---|
| 2011-07 | 296 | 0% |
| 2011-08 | 566 | 0% |
| 2011-09 | 1,459 | 0% |
| 2011-11 | 82 | 0% |
| 2011-12 | 61 | 0% |
| 2012-01 | 4 | 0% |
| 2012-02 | 9 | 0% |
| 2012-03 | 93 | 0% |
| 2012-04 | 176 | 0% |
| 2012-05 | 2 | 0% |
| 2012-07 | 58 | 0% |
| 2012-10 | 19 | 0% |
AI provenance describes how code was produced; it is not a quality judgment. Unless attribution is explicit, these are signals consistent with AI generation, not proof. Squash/rebase workflows, imported code, and rewritten history reduce accuracy.
Code quality
Code quality is poor: test-to-source ratio 0.00, no CI test run detected; 33% of function code in complex or long functions; 10% duplicated lines. Weakest area: testing.
| Area | Score |
|---|---|
| Complexity (lizard) | 38 |
| Duplication | 56 |
| Code smells (Opengrep) | 100 |
| Tests and CI | 0 |
| Documentation | 55 |
| Type safety | n/a |
| Process (Scorecard review/maintenance) | 5 |
- Functions: 132; mean complexity 9.4, 90th percentile 21; 17 complex and 1 long functions
- Duplicated lines: 9.8% of 3,475 compared
- Tests: 0 test lines for 5,161 source lines (ratio 0.00); CI test commands: none detected; 0% of recent source commits also change tests
- Docs missing or thin: license, changelog
Most complex functions:
- is_ref in src/markdown.c: complexity 71, 81 lines
- char_link in src/markdown.c: complexity 68, 164 lines
- parse_listitem in src/markdown.c: complexity 39, 90 lines
- parse_htmlblock in src/markdown.c: complexity 37, 55 lines
- find_emph_char in src/markdown.c: complexity 37, 65 lines
Security
Security posture is adequate: no high-impact findings. Weakest area: posture.
| Area | Score |
|---|---|
| Secrets (gitleaks, tree + history) | 100 |
| Static analysis (Opengrep) | 92 |
| Vulnerable dependencies (OSV) | n/a |
| CI workflows (zizmor) | n/a |
| Posture (policy, updates, signing, lockfiles) | 0 |
| OpenSSF Scorecard | 25 |
- Posture checks passed: lockfiles; missing: security policy, dependency updates, signed commits
- OpenSSF Scorecard aggregate: 1.6/10 (published 2026-11-02)
Top findings
| Severity | Finding | Location |
|---|---|---|
| medium | opengrep/c.lang.security.insecure-use-memset: When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While memset() is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoi [confidence low] |
html/html.c:577 |
| medium | opengrep/c.lang.security.insecure-use-memset: When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While memset() is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoi [confidence low] |
html/html.c:619 |
| medium | opengrep/c.lang.security.insecure-use-memset: When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While memset() is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoi [confidence low] |
src/markdown.c:2416 |
| medium | opengrep/c.lang.security.insecure-use-memset: When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While memset() is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoi [confidence low] |
src/markdown.c:2473 |
| medium | opengrep/c.lang.security.insecure-use-memset: When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While memset() is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoi [confidence low] |
src/stack.c:16 |
Static signals only: the scorer never runs the project's code. Secret findings are pattern matches that were not verified, and secret values are never stored.
Repository profile
- Source lines: 5,161; test lines: 0
| Language | Lines |
|---|---|
| C | 5,161 |