{"schema_version":"2","scorer_version":"0.1.0","scoring_version":"prov-4+qual-2+sec-2","generated_at":"2026-11-13T23:31:58.451054Z","repo":{"ref":{"host":"github.com","owner":"vmg","name":"sundown"},"default_branch":"master","clone_url":"https://github.com/vmg/sundown.git","html_url":"https://github.com/vmg/sundown","description":"Standards compliant, fast, secure markdown processing library in C","stars":2019,"forks":385,"is_fork":false,"is_archived":false,"is_private":false,"size_kb":1219,"primary_language":"C","license_spdx":null,"created_at":"2011-04-15T08:38:13Z","pushed_at":"2018-07-23T10:50:07Z","security_policy_url":null,"distribution":{"owner_created_at":"2008-12-26T20:21:00Z","owner_type":"User","release_assets":[]}},"commit_sha":"37728fb2d7137ff7c37d0a474cb827a8d6d846d8","profile":{"lines_by_language":{"C":5161},"files_by_category":{"source":17,"docs":3,"other":3,"config":1},"source_lines":5161,"test_lines":0},"pillars":{"ai_provenance":{"score":0.0,"confidence":0.65,"coverage":1.0,"label":"none-detected","breakdown":{"attributed_share":0.0,"suspected_share":0.0,"estimated_share":0.0,"ai_artifacts":0.0,"flagged_work_units":0.0,"flagged_releases":null},"summary":"No AI attribution or AI-consistent velocity signals detected."},"quality":{"score":38.8,"confidence":0.9,"coverage":1.0,"label":"poor","breakdown":{"complexity":37.5,"duplication":55.5,"lint":100.0,"testing":0.0,"docs":55.0,"type_safety":null,"process":5.0},"summary":"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."},"security":{"score":70.6,"confidence":0.85,"coverage":1.0,"label":"adequate","breakdown":{"secrets":100.0,"sast":91.9,"dependencies":null,"ci_actions":null,"posture":0.0,"scorecard":25.0},"summary":"Security posture is adequate: no high-impact findings. Weakest area: posture."}},"analyzer_results":[{"analyzer":"sec-scorecard","pillar":"security","status":"ok","tool_version":"scorecard v5.6.0","metrics":{"aggregate":1.6,"check:Code-Review":1.0,"check:Maintained":0.0,"check:Binary-Artifacts":10.0,"check:CII-Best-Practices":0.0,"check:Security-Policy":0.0,"check:Fuzzing":0.0,"check:License":0.0,"check:Branch-Protection":0.0,"check:SAST":0.0},"findings":[],"evidence":[{"kind":"scorecard-check","description":"Scorecard Code-Review: 1/10 (Found 5/30 approved changesets -- score normalized to 1)","ref":"Code-Review","url":"https://scorecard.dev/viewer/?uri=github.com/vmg/sundown","weight":0.9},{"kind":"scorecard-check","description":"Scorecard Maintained: 0/10 (0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0)","ref":"Maintained","url":"https://scorecard.dev/viewer/?uri=github.com/vmg/sundown","weight":1.0},{"kind":"scorecard-check","description":"Scorecard Binary-Artifacts: 10/10 (no binaries found in the repo)","ref":"Binary-Artifacts","url":"https://scorecard.dev/viewer/?uri=github.com/vmg/sundown","weight":0.0},{"kind":"scorecard-check","description":"Scorecard CII-Best-Practices: 0/10 (no effort to earn an OpenSSF best practices badge detected)","ref":"CII-Best-Practices","url":"https://scorecard.dev/viewer/?uri=github.com/vmg/sundown","weight":1.0},{"kind":"scorecard-check","description":"Scorecard Security-Policy: 0/10 (security policy file not detected)","ref":"Security-Policy","url":"https://scorecard.dev/viewer/?uri=github.com/vmg/sundown","weight":1.0},{"kind":"scorecard-check","description":"Scorecard Fuzzing: 0/10 (project is not fuzzed)","ref":"Fuzzing","url":"https://scorecard.dev/viewer/?uri=github.com/vmg/sundown","weight":1.0},{"kind":"scorecard-check","description":"Scorecard License: 0/10 (license file not detected)","ref":"License","url":"https://scorecard.dev/viewer/?uri=github.com/vmg/sundown","weight":1.0},{"kind":"scorecard-check","description":"Scorecard Branch-Protection: 0/10 (branch protection not enabled on development/release branches)","ref":"Branch-Protection","url":"https://scorecard.dev/viewer/?uri=github.com/vmg/sundown","weight":1.0},{"kind":"scorecard-check","description":"Scorecard SAST: 0/10 (SAST tool is not run on all commits -- score normalized to 0)","ref":"SAST","url":"https://scorecard.dev/viewer/?uri=github.com/vmg/sundown","weight":1.0}],"data":{"date":"2026-11-02","commit":"37728fb2d7137ff7c37d0a474cb827a8d6d846d8","matches_head":true},"error":null},{"analyzer":"sec-registry","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":"no registry dependencies declared"},{"analyzer":"ai-attribution","pillar":"ai_provenance","status":"ok","tool_version":"signatures-v1","metrics":{"commits":198.0,"attributed_commits":0.0,"attributed_commit_share":0.0,"effective_loc":9288.0,"attributed_loc":0.0,"attributed_loc_share":0.0,"tools_detected":0.0},"findings":[],"evidence":[],"data":{"attributed_loc_by_commit":{},"tools":{},"monthly":{"2011-04":{"loc":4755,"attributed_loc":0},"2011-05":{"loc":776,"attributed_loc":0},"2011-06":{"loc":932,"attributed_loc":0},"2011-07":{"loc":296,"attributed_loc":0},"2011-08":{"loc":566,"attributed_loc":0},"2011-09":{"loc":1459,"attributed_loc":0},"2011-11":{"loc":82,"attributed_loc":0},"2011-12":{"loc":61,"attributed_loc":0},"2012-01":{"loc":4,"attributed_loc":0},"2012-02":{"loc":9,"attributed_loc":0},"2012-03":{"loc":93,"attributed_loc":0},"2012-04":{"loc":176,"attributed_loc":0},"2012-05":{"loc":2,"attributed_loc":0},"2012-07":{"loc":58,"attributed_loc":0},"2012-08":{"loc":0,"attributed_loc":0},"2012-10":{"loc":19,"attributed_loc":0},"2012-11":{"loc":0,"attributed_loc":0}}},"error":null},{"analyzer":"ai-artifacts","pillar":"ai_provenance","status":"ok","tool_version":"signatures-v1","metrics":{"artifacts":0.0,"workflow_agents":0.0,"tools_configured":0.0},"findings":[],"evidence":[],"data":{"artifacts":[],"workflows":[],"tools":[]},"error":null},{"analyzer":"ai-velocity","pillar":"ai_provenance","status":"ok","tool_version":"prov-4","metrics":{"work_units":114.0,"flagged_units":0.0,"pre_ai_era_bursts":0.0,"pre_ai_era_measured_loc":5279.0,"pre_ai_era_burst_loc":0.0,"measured_loc":5279.0,"flagged_loc":0.0,"flagged_loc_share":0.0,"max_loc_per_hour":151.00095328884652,"median_loc_per_hour":57.28464318463779,"pr_timed_units":0.0,"excluded_import_loc":4009.0},"findings":[],"evidence":[],"data":{"flagged_loc_by_commit":{},"excluded_import_commits":["e1e5ea96ff63d502ba81a114fcd460a9485640f9"]},"error":null},{"analyzer":"ai-release-velocity","pillar":"ai_provenance","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"ai-stylometry","pillar":"ai_provenance","status":"ok","tool_version":null,"metrics":{"lines_scanned":5161.0,"index":0.0,"count:narrated_steps":0.0,"per_kloc:narrated_steps":0.0,"files:narrated_steps":0.0,"count:placeholder":0.0,"per_kloc:placeholder":0.0,"files:placeholder":0.0,"count:emoji_in_code":0.0,"per_kloc:emoji_in_code":0.0,"files:emoji_in_code":0.0,"count:assistant_voice":0.0,"per_kloc:assistant_voice":0.0,"files:assistant_voice":0.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-secrets","pillar":"security","status":"ok","tool_version":"gitleaks 8.30.1","metrics":{"secrets_current":0.0,"secrets_history":0.0,"secrets_nonprod":0.0,"secrets_low_confidence":0.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-sast","pillar":"security","status":"ok","tool_version":"opengrep 1.33.1; rules f1d2b562b414","metrics":{"findings":5.0,"findings_high":0.0,"findings_medium":5.0,"findings_low":0.0,"weighted_findings":1.25,"scanned_lines":5161.0,"parse_errors":0.0},"findings":[{"rule_id":"opengrep/c.lang.security.insecure-use-memset","severity":"medium","message":"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]","path":"html/html.c","line":577,"fingerprint":"c.lang.security.insecure-use-memset:html/html.c:577"},{"rule_id":"opengrep/c.lang.security.insecure-use-memset","severity":"medium","message":"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]","path":"html/html.c","line":619,"fingerprint":"c.lang.security.insecure-use-memset:html/html.c:619"},{"rule_id":"opengrep/c.lang.security.insecure-use-memset","severity":"medium","message":"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]","path":"src/markdown.c","line":2416,"fingerprint":"c.lang.security.insecure-use-memset:src/markdown.c:2416"},{"rule_id":"opengrep/c.lang.security.insecure-use-memset","severity":"medium","message":"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]","path":"src/markdown.c","line":2473,"fingerprint":"c.lang.security.insecure-use-memset:src/markdown.c:2473"},{"rule_id":"opengrep/c.lang.security.insecure-use-memset","severity":"medium","message":"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]","path":"src/stack.c","line":16,"fingerprint":"c.lang.security.insecure-use-memset:src/stack.c:16"}],"evidence":[],"data":{"rulesets":["c"]},"error":null},{"analyzer":"sec-deps","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-actions","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-posture","pillar":"security","status":"ok","tool_version":null,"metrics":{"check:security_policy":0.0,"check:dependency_updates":0.0,"check:signed_commits":0.0,"check:lockfiles":1.0,"signed_commit_share":0.0,"unpinned_manifests":0.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-distribution","pillar":"security","status":"ok","tool_version":null,"metrics":{"signals":0.0,"binary_assets":0.0,"suspicious":0.0},"findings":[],"evidence":[],"data":{"signals":[],"suspicious":false,"unusual_traction":false,"metadata":true},"error":null},{"analyzer":"qual-complexity","pillar":"quality","status":"ok","tool_version":"lizard 1.25.1","metrics":{"functions":132.0,"function_nloc":2901.0,"mean_ccn":9.41,"p90_ccn":21.0,"complex_functions":17.0,"long_functions":1.0,"many_param_functions":0.0,"risky_nloc_share":0.3268},"findings":[],"evidence":[{"kind":"complex-function","description":"is_ref in src/markdown.c: complexity 71, 81 lines","ref":"src/markdown.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/src/markdown.c#L2255","weight":1.0},{"kind":"complex-function","description":"char_link in src/markdown.c: complexity 68, 164 lines","ref":"src/markdown.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/src/markdown.c#L842","weight":1.0},{"kind":"complex-function","description":"parse_listitem in src/markdown.c: complexity 39, 90 lines","ref":"src/markdown.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/src/markdown.c#L1629","weight":0.65},{"kind":"complex-function","description":"parse_htmlblock in src/markdown.c: complexity 37, 55 lines","ref":"src/markdown.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/src/markdown.c#L1899","weight":0.6166666666666667},{"kind":"complex-function","description":"find_emph_char in src/markdown.c: complexity 37, 65 lines","ref":"src/markdown.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/src/markdown.c#L392","weight":0.6166666666666667},{"kind":"complex-function","description":"parse_table_header in src/markdown.c: complexity 30, 65 lines","ref":"src/markdown.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/src/markdown.c#L2040","weight":0.5},{"kind":"complex-function","description":"tag_length in src/markdown.c: complexity 30, 40 lines","ref":"src/markdown.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/src/markdown.c#L291","weight":0.5},{"kind":"complex-function","description":"parse_paragraph in src/markdown.c: complexity 30, 75 lines","ref":"src/markdown.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/src/markdown.c#L1433","weight":0.5},{"kind":"complex-function","description":"smartypants_cb__number in html/html_smartypants.c: complexity 25, 27 lines","ref":"html/html_smartypants.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/html/html_smartypants.c#L228","weight":0.4166666666666667},{"kind":"complex-function","description":"smartypants_cb__squote in html/html_smartypants.c: complexity 22, 29 lines","ref":"html/html_smartypants.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/html/html_smartypants.c#L104","weight":0.36666666666666664}],"data":{},"error":null},{"analyzer":"qual-duplication","pillar":"quality","status":"ok","tool_version":"repotrust-dup-w6","metrics":{"compared_lines":3475.0,"duplicated_lines":341.0,"duplicated_share":0.0981,"files":17.0},"findings":[],"evidence":[{"kind":"duplicate-code","description":"6+ duplicated lines: examples/smartypants.c:2 and examples/sundown.c:2","ref":"examples/smartypants.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/examples/smartypants.c#L2","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: html/houdini_href_e.c:43 and html/houdini_href_e.c:44","ref":"html/houdini_href_e.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/html/houdini_href_e.c#L43","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: html/houdini_href_e.c:66 and html/houdini_html_e.c:59","ref":"html/houdini_href_e.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/html/houdini_href_e.c#L66","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: html/html.c:2 and src/markdown.c:4","ref":"html/html.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/html/html.c#L2","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: html/html.c:94 and html/html.c:250","ref":"html/html.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/html/html.c#L94","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: html/html_smartypants.c:10 and src/autolink.c:10","ref":"html/html_smartypants.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/html/html_smartypants.c#L10","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: src/autolink.c:11 and src/markdown.c:14","ref":"src/autolink.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/src/autolink.c#L11","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: src/autolink.c:163 and src/autolink.c:199","ref":"src/autolink.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/src/autolink.c#L163","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: src/buffer.c:2 and src/buffer.h:2","ref":"src/buffer.c","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/src/buffer.c#L2","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: src/html_blocks.h:108 and src/html_blocks.h:109","ref":"src/html_blocks.h","url":"https://github.com/vmg/sundown/blob/37728fb2d7137ff7c37d0a474cb827a8d6d846d8/src/html_blocks.h#L108","weight":0.3}],"data":{},"error":null},{"analyzer":"qual-lint","pillar":"quality","status":"ok","tool_version":"opengrep 1.33.1; rules f1d2b562b414","metrics":{"findings":0.0,"weighted_findings":0.0,"scanned_lines":5161.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"qual-testing","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:has_tests":0.0,"check:test_ratio":0.0,"check:ci_present":0.0,"check:ci_runs_tests":0.0,"check:ci_runs_lint":0.0,"check:tests_cochange":0.0,"test_lines":0.0,"source_lines":5161.0,"test_ratio":0.0,"ci_files":0.0,"cochange_share":0.0,"cochange_commits":165.0},"findings":[],"evidence":[],"data":{"test_commands":[],"lint_commands":[]},"error":null},{"analyzer":"qual-docs","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:readme":1.0,"check:license":0.0,"check:contributing":1.0,"check:changelog":0.0,"readme_lines":95.0},"findings":[],"evidence":[{"kind":"docs","description":"README.markdown","ref":"README.markdown","url":null,"weight":0.0},{"kind":"docs","description":"CONTRIBUTING.md","ref":"CONTRIBUTING.md","url":null,"weight":0.0}],"data":{},"error":null},{"analyzer":"qual-type-safety","pillar":"quality","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null}],"flags":[]}