{"schema_version":"2","scorer_version":"0.1.0","scoring_version":"prov-5+qual-2+sec-2","generated_at":"2026-11-14T14:52:02.151262Z","repo":{"ref":{"host":"github.com","owner":"ValveSoftware","name":"ToGL"},"default_branch":"master","clone_url":"https://github.com/ValveSoftware/ToGL.git","html_url":"https://github.com/ValveSoftware/ToGL","description":"Direct3D to OpenGL abstraction layer","stars":2094,"forks":191,"is_fork":false,"is_archived":false,"is_private":false,"size_kb":541,"primary_language":"C++","license_spdx":"NOASSERTION","created_at":"2014-03-11T02:03:10Z","pushed_at":"2015-09-01T05:05:05Z","security_policy_url":null,"distribution":{"owner_created_at":"2012-12-19T17:20:48Z","owner_type":"Organization","release_assets":[]}},"commit_sha":"7b64367f0e67b29bdc3343f43e440059c591216b","profile":{"lines_by_language":{"C++":28632,"C":10081},"files_by_category":{"source":35,"other":4,"docs":2},"source_lines":38713,"test_lines":0},"pillars":{"ai_provenance":{"score":0.0,"confidence":0.41,"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,"style_index":0.077},"summary":"No AI attribution or AI-consistent velocity signals detected."},"quality":{"score":37.0,"confidence":0.9,"coverage":1.0,"label":"poor","breakdown":{"complexity":26.0,"duplication":45.1,"lint":100.0,"testing":0.0,"docs":45.0,"type_safety":null,"process":null},"summary":"Code quality is poor: test-to-source ratio 0.00, no CI test run detected; 45% of function code in complex or long functions; 13% duplicated lines. Weakest area: testing."},"security":{"score":81.1,"confidence":0.85,"coverage":1.0,"label":"adequate","breakdown":{"secrets":100.0,"sast":98.0,"dependencies":null,"ci_actions":null,"posture":0.0,"scorecard":null},"summary":"Security posture is adequate: no high-impact findings. Weakest area: posture."}},"analyzer_results":[{"analyzer":"sec-scorecard","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":"no published OpenSSF Scorecard result for this repo"},{"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":2.0,"attributed_commits":0.0,"attributed_commit_share":0.0,"effective_loc":38713.0,"attributed_loc":0.0,"attributed_loc_share":0.0,"tools_detected":0.0},"findings":[],"evidence":[],"data":{"attributed_loc_by_commit":{},"tools":{},"monthly":{"2014-03":{"loc":38713,"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":1.0,"flagged_units":0.0,"pre_ai_era_bursts":0.0,"pre_ai_era_measured_loc":748.0,"pre_ai_era_burst_loc":0.0,"measured_loc":748.0,"flagged_loc":0.0,"flagged_loc_share":0.0,"max_loc_per_hour":187.0,"median_loc_per_hour":187.0,"pr_timed_units":0.0,"excluded_import_loc":37965.0},"findings":[],"evidence":[],"data":{"flagged_loc_by_commit":{},"excluded_import_commits":["d384c59d3b21203cf18e5d12bda1147d79172711"]},"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":38713.0,"index":0.077,"count:narrated_steps":3.0,"per_kloc:narrated_steps":0.077,"files:narrated_steps":2.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":[{"kind":"stylometry:narrated_steps","description":"step-by-step narration comment: // now we know enough to allocate and populate the new tex layout.","ref":"togl/linuxwin/cglmtex.cpp:557","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/cglmtex.cpp#L557","weight":0.0},{"kind":"stylometry:narrated_steps","description":"step-by-step narration comment: // finally, disable all of them if commandline did not say \"enable spew\"","ref":"togl/linuxwin/glmgrbasics.cpp:2739","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/glmgrbasics.cpp#L2739","weight":0.0},{"kind":"stylometry:narrated_steps","description":"step-by-step narration comment: // then, move cursor to next line.","ref":"togl/linuxwin/glmgrbasics.cpp:4508","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/glmgrbasics.cpp#L4508","weight":0.0}],"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":9.0,"findings_high":0.0,"findings_medium":9.0,"findings_low":0.0,"weighted_findings":2.25,"scanned_lines":38713.0,"parse_errors":12.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":"public/togl/linuxwin/glmgr.h","line":75,"fingerprint":"c.lang.security.insecure-use-memset:public/togl/linuxwin/glmgr.h:75"},{"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":"public/togl/linuxwin/glmgr.h","line":899,"fingerprint":"c.lang.security.insecure-use-memset:public/togl/linuxwin/glmgr.h:899"},{"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":"public/togl/linuxwin/glmgr.h","line":956,"fingerprint":"c.lang.security.insecure-use-memset:public/togl/linuxwin/glmgr.h:956"},{"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":"public/togl/linuxwin/glmgr.h","line":1181,"fingerprint":"c.lang.security.insecure-use-memset:public/togl/linuxwin/glmgr.h:1181"},{"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":"public/togl/linuxwin/glmgr.h","line":1408,"fingerprint":"c.lang.security.insecure-use-memset:public/togl/linuxwin/glmgr.h:1408"},{"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":"public/togl/linuxwin/glmgr.h","line":1578,"fingerprint":"c.lang.security.insecure-use-memset:public/togl/linuxwin/glmgr.h:1578"},{"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":"public/togl/linuxwin/glmgr.h","line":1882,"fingerprint":"c.lang.security.insecure-use-memset:public/togl/linuxwin/glmgr.h:1882"},{"rule_id":"opengrep/c.lang.security.insecure-use-string-copy-fn","severity":"medium","message":"Finding triggers whenever there is a strcpy or strncpy used. This is an issue because strcpy does not affirm the size of the destination array and strncpy will not automatically NULL-terminate strings. This can lead to buffer overflows, which can cause program crashes and potentially let an attacker [confidence low]","path":"public/togl/linuxwin/glmgrbasics.h","line":183,"fingerprint":"c.lang.security.insecure-use-string-copy-fn:public/togl/linuxwin/glmgrbasics.h:183"},{"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":"togl/linuxwin/mach_override.c","line":675,"fingerprint":"c.lang.security.insecure-use-memset:togl/linuxwin/mach_override.c:675"}],"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":928.0,"function_nloc":19519.0,"mean_ccn":4.85,"p90_ccn":9.0,"complex_functions":49.0,"long_functions":32.0,"many_param_functions":25.0,"risky_nloc_share":0.4495},"findings":[],"evidence":[{"kind":"complex-function","description":"D3DToGL_ASM::TranslateShader in togl/linuxwin/dx9asmtogl.cpp: complexity 160, 697 lines","ref":"togl/linuxwin/dx9asmtogl.cpp","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/dx9asmtogl.cpp#L1074","weight":1.0},{"kind":"complex-function","description":"D3DToGL::TranslateShader in togl/linuxwin/dx9asmtogl2.cpp: complexity 160, 549 lines","ref":"togl/linuxwin/dx9asmtogl2.cpp","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/dx9asmtogl2.cpp#L3086","weight":1.0},{"kind":"complex-function","description":"GLMContext::DebugHook in togl/linuxwin/glmgr.cpp: complexity 126, 392 lines","ref":"togl/linuxwin/glmgr.cpp","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/glmgr.cpp#L3682","weight":1.0},{"kind":"complex-function","description":"GLMContext::DebugDump in togl/linuxwin/glmgr.cpp: complexity 112, 503 lines","ref":"togl/linuxwin/glmgr.cpp","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/glmgr.cpp#L2993","weight":1.0},{"kind":"complex-function","description":"D3DToGL::PrintParameterToString in togl/linuxwin/dx9asmtogl2.cpp: complexity 108, 471 lines","ref":"togl/linuxwin/dx9asmtogl2.cpp","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/dx9asmtogl2.cpp#L1098","weight":1.0},{"kind":"complex-function","description":"D3DToGL_ASM::PrintParameterToString in togl/linuxwin/dx9asmtogl.cpp: complexity 87, 364 lines","ref":"togl/linuxwin/dx9asmtogl.cpp","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/dx9asmtogl.cpp#L583","weight":1.0},{"kind":"complex-function","description":"D3DToGL_ASM::PrintOpcode in togl/linuxwin/dx9asmtogl.cpp: complexity 83, 195 lines","ref":"togl/linuxwin/dx9asmtogl.cpp","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/dx9asmtogl.cpp#L280","weight":1.0},{"kind":"complex-function","description":"D3DToGL::PrintOpcode in togl/linuxwin/dx9asmtogl2.cpp: complexity 83, 195 lines","ref":"togl/linuxwin/dx9asmtogl2.cpp","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/dx9asmtogl2.cpp#L650","weight":1.0},{"kind":"complex-function","description":"IDirect3DDevice9::SetRenderState in togl/linuxwin/dxabstract.cpp: complexity 83, 314 lines","ref":"togl/linuxwin/dxabstract.cpp","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/dxabstract.cpp#L5719","weight":1.0},{"kind":"complex-function","description":"D3DToGL::OpenIntrinsic in togl/linuxwin/dx9asmtogl2.cpp: complexity 80, 204 lines","ref":"togl/linuxwin/dx9asmtogl2.cpp","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/dx9asmtogl2.cpp#L424","weight":1.0}],"data":{},"error":null},{"analyzer":"qual-duplication","pillar":"quality","status":"ok","tool_version":"repotrust-dup-w6","metrics":{"compared_lines":25590.0,"duplicated_lines":3392.0,"duplicated_share":0.1326,"files":35.0},"findings":[],"evidence":[{"kind":"duplicate-code","description":"6+ duplicated lines: public/togl/linuxwin/cglmbuffer.h:1 and public/togl/linuxwin/cglmfbo.h:1","ref":"public/togl/linuxwin/cglmbuffer.h","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/public/togl/linuxwin/cglmbuffer.h#L1","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: public/togl/linuxwin/cglmbuffer.h:19 and public/togl/linuxwin/cglmprogram.h:19","ref":"public/togl/linuxwin/cglmbuffer.h","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/public/togl/linuxwin/cglmbuffer.h#L19","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: public/togl/linuxwin/cglmtex.h:296 and public/togl/linuxwin/cglmtex.h:336","ref":"public/togl/linuxwin/cglmtex.h","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/public/togl/linuxwin/cglmtex.h#L296","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: public/togl/linuxwin/dxabstract.h:117 and togl/linuxwin/dxabstract.cpp:6251","ref":"public/togl/linuxwin/dxabstract.h","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/public/togl/linuxwin/dxabstract.h#L117","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: public/togl/linuxwin/dxabstract_types.h:1133 and public/togl/linuxwin/glmgr.h:1062","ref":"public/togl/linuxwin/dxabstract_types.h","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/public/togl/linuxwin/dxabstract_types.h#L1133","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: public/togl/linuxwin/dxabstract_types.h:1644 and togl/linuxwin/glmgr.cpp:4777","ref":"public/togl/linuxwin/dxabstract_types.h","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/public/togl/linuxwin/dxabstract_types.h#L1644","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: public/togl/linuxwin/glmgr.h:1857 and togl/linuxwin/glmgr.cpp:4796","ref":"public/togl/linuxwin/glmgr.h","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/public/togl/linuxwin/glmgr.h#L1857","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: togl/linuxwin/cglmbuffer.cpp:118 and togl/linuxwin/cglmbuffer.cpp:141","ref":"togl/linuxwin/cglmbuffer.cpp","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/cglmbuffer.cpp#L118","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: togl/linuxwin/cglmprogram.cpp:260 and togl/linuxwin/cglmprogram.cpp:284","ref":"togl/linuxwin/cglmprogram.cpp","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/cglmprogram.cpp#L260","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: togl/linuxwin/cglmtex.cpp:931 and togl/linuxwin/cglmtex.cpp:1916","ref":"togl/linuxwin/cglmtex.cpp","url":"https://github.com/ValveSoftware/ToGL/blob/7b64367f0e67b29bdc3343f43e440059c591216b/togl/linuxwin/cglmtex.cpp#L931","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":38713.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":38713.0,"test_ratio":0.0,"ci_files":0.0,"cochange_share":0.0,"cochange_commits":2.0},"findings":[],"evidence":[],"data":{"test_commands":[],"lint_commands":[]},"error":null},{"analyzer":"qual-docs","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:readme":0.5,"check:license":1.0,"check:contributing":0.0,"check:changelog":0.0,"readme_lines":13.0},"findings":[],"evidence":[{"kind":"docs","description":"README.md","ref":"README.md","url":null,"weight":0.0},{"kind":"docs","description":"LICENSE","ref":"LICENSE","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":[]}