Bug 1742 - memory leak in lecroy-xstream function lecroy_xstream_state_get
Summary: memory leak in lecroy-xstream function lecroy_xstream_state_get
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Driver: lecroy-xstream (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Nobody
URL: https://github.com/sigrokproject/libs...
Depends on:
Reported: 2021-10-24 19:56 CEST by Lucien Murray-Pitts
Modified: 2021-10-24 19:56 CEST (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Lucien Murray-Pitts 2021-10-24 19:56:12 CEST
Have created a pull request for this:

Subject: fixing memory leak in lecroy-xstream
The character data used from the sr_scpi_get_string routine performs a strtok and is passed into several pointers, and incorrectly g_free'd resulting in invalid pointer data being used, and potential memory leaks/crashes.