Repository navigation
Task #115: zimg NEON float vertical resize over-read (arm64 ASan) — report, no code change - #279
Merged
StuartCameronCode merged 3 commits intoNov 27, 2026
Conversation
…over-read build.sh takes ZIMG_PATCH; tmp_overrun.c takes --pad and --crc; run_cases.sh keeps aborted stderr with KEEP_ERR. asan_report.sh and bundle_check.sh run the controls on ubuntu-24.04-arm. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ient over-read All 32 linux-arm64 gcc ASan aborts are resize_line_v_f32_neon reading filter_data[4..7] past a <=4-tap filter's coefficient vector. Padded frames change nothing; a one-function patch removes them with identical output; clang ASan, the shipped -O3 build and the rc4 bundle under valgrind are clean. No VapourBox change; CLAUDE.md says the 32 don't block a zimg bump. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
StuartCameronCode
force-pushed
the
stuart/115-linux-arm64-gcc-13-asan-zimg-67e06032-re
branch
from
November 27, 2026 14:19
64039a0 to
147c8e1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task #115. Task #109 found that 32 of its 158 zimg test cases abort under gcc 13 AddressSanitizer on linux-arm64 (
heap-buffer-overflow), at every graphengine commit, the commit Linux ships included. This PR finds the cause and shows that what we ship is not affected. No VapourBox code changes.Finding
zimg's
resize_line_v_f32_neon<Taps, Continue>always loads 8 filter coefficients. On ARM, a vertical float filter with 4 or fewer taps has rows only 4 floats long, so on the last output row the kernel reads up to 16 bytes past the coefficient vector. The extra values are never used. The bug is in 67e06032 (our pin) and in zimg master 9806db42.Evidence from two
ubuntu-24.04-armruns (45994602531, 45995908194):READ of size 4in<1, false>or<4, false>, 0 bytes past a coefficient vector of output rows × 16 bytes.-O3build VapourSynth makes emits none of the extra loads (checked in the disassembly), and valgrind is clean on it.deps-v1.18.0-rc4linux-arm64 bundle is clean under valgrind.Changes
docs/reports/task-115-zimg-neon-v-f32-overread/: the report, scripts (asan_report.sh,bundle_check.sh,upstream_repro.c, the zimg patch), the data from both runs, and a draft upstream issue (not filed)..github/workflows/zimg-neon-asan.yml: an arm64 workflow that runs the evidence. It runs only when dispatched, or when the workflow file changes on a non-main branch.--padand--crc(tmp_overrun.c),KEEP_ERR(run_cases.sh) andZIMG_PATCH(build.sh). All are additive, and the defaults are unchanged.Testing
zimg_pin_test.dartandreadme_pipeline_order_test.dartpass; the deps_delta_install and crash_report_classifier tests passed in the earlier stage.bash -nis clean on all scripts.🤖 Generated with Claude Code