-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oscplot: fix memory corruption in plot_setup()
When initializing a FFT plot, plot_setup initializes the transform as well as the X and Y axis and passes the handles to the gtkdatabox library. After initialization osc_plot_update_rx_lbl is called which calls transform_setup, invalidating the handles sent to the gtkdatabox. This causes gtkdatabox to apply operations on invalid memory areas. To fix this, we make sure we don't reinitialize the transform on initial setup. Signed-off-by: Adrian Suciu <[email protected]>
- Loading branch information
Showing
3 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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