Skip to content

Fix out of bounds memory access when scrolling a spectrogram #9124

Merged
kryksyh merged 2 commits intoaudacity:audacity3from
kryksyh:8851_fix_crash_while_scrolling_a_spectrogram
Jul 24, 2025
Merged

Fix out of bounds memory access when scrolling a spectrogram #9124
kryksyh merged 2 commits intoaudacity:audacity3from
kryksyh:8851_fix_crash_while_scrolling_a_spectrogram

Conversation

@kryksyh
Copy link
Copy Markdown
Member

@kryksyh kryksyh commented Jul 23, 2025

Resolves: #8851

The cache memory region was resized before the old data was moved

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

@kryksyh kryksyh requested a review from saintmatthieu July 23, 2025 15:49
@kryksyh kryksyh self-assigned this Jul 23, 2025
kryksyh added 2 commits July 23, 2025 18:50
Accessing data() before the vector was resized is an undefined behavior, causing a crash when ASAN is enabled
@kryksyh kryksyh force-pushed the 8851_fix_crash_while_scrolling_a_spectrogram branch from 837ceaa to c4d2737 Compare July 23, 2025 15:50
@kryksyh kryksyh linked an issue Jul 23, 2025 that may be closed by this pull request
@kryksyh kryksyh merged commit 943973d into audacity:audacity3 Jul 24, 2025
9 of 11 checks passed
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.

Crash when rendering spectrum view

2 participants