Skip to content

fix: segfault with multichannel custom series #2307#2345

Closed
jschmer wants to merge 1 commit into
hoffstadt:masterfrom
jschmer:fix-2307
Closed

fix: segfault with multichannel custom series #2307#2345
jschmer wants to merge 1 commit into
hoffstadt:masterfrom
jschmer:fix-2307

Conversation

@jschmer
Copy link
Copy Markdown

@jschmer jschmer commented Jun 16, 2024


name: Pull Request
about: Create a pull request to help us improve
title: fix: segfault with multichannel custom series #2307
assignees: ''


Closes #2307

Description:
Fix for custom_series with multiple y channels. outConfig._transformedValues needs to be sized correctly for the plotter function to use it. It didn't match this expectation so the plotter function crashed/segfaulted with out of bounds memory access. The fix is to prepare correspondingly sized vectors in outConfig._transformedValues so that the plotter function can use it.

@v-ein
Copy link
Copy Markdown
Collaborator

v-ein commented Mar 28, 2026

I recently attempted to improve the code that prepares _transformedValues and ended up rewriting it and also fixing this issue - see PR #2616. Closing this PR so that we don't kill the bug twice 😂. Anyway, thanks for your work on the fix!

@v-ein v-ein closed this Mar 28, 2026
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.

add_custom_series crashed when channel_count > 2

2 participants