Skip to content

Clarify sprite allocation sizes and restore Ruby scanning - #66

Merged
decoder-dev merged 3 commits into
masterfrom
filosoff/sprite-dimensions-20261026
Oct 26, 2026
Merged

decoder-dev merged 3 commits into
masterfrom
filosoff/sprite-dimensions-20261026

Conversation

@decoder-dev

@decoder-dev decoder-dev commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Make the sprite macroblock allocation count explicitly std::size_t before multiplying both dimensions, with the standard size-type header included. The first security PR widened these expressions with C-style casts; CodeQL’s no-build analysis still reported the two vector constructor expressions. Use one named wide count shared by both allocations, retaining the allocation sizes and behavior.

Restore the Ruby analysis configuration still present in the default-branch baseline. Ruby uses its own configuration: the codec-specific C/C++ exclusions previously hid the repository’s Ruby tool, leaving no Ruby source for the extractor. This restores active scanning instead of deleting the old analysis configuration.

The changed sprite_encode.cpp translation unit compiles locally. This follow-up remains a draft until the repeated C++ CodeQL analysis and the Apple Silicon native codec suite pass. The full native codec suite cannot build on this Linux x86 host because its existing SIMD implementation requires ARM NEON.

Final review: the repeated no-build analysis still treated the named size_t multiplication as int arithmetic (alert 1389). The actual compiled translation unit’s GIMPLE explicitly converts both hwm and hhm to unsigned long before multiplication; the ARM64 native suite also passes. This remaining report is individually dismissed as a verified false positive. No queries or source-scanning paths are disabled. Evidence is retained in the task’s sprite-allocation.gimple and triage record.

@decoder-dev decoder-dev changed the title Make sprite allocation dimensions explicitly wide Clarify sprite allocation sizes and restore Ruby scanning Oct 26, 2026
@decoder-dev
decoder-dev marked this pull request as ready for review October 26, 2026 03:54
@decoder-dev
decoder-dev merged commit e838be1 into master Oct 26, 2026
13 checks passed
@decoder-dev
decoder-dev deleted the filosoff/sprite-dimensions-20261026 branch October 26, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants