Bug 1742 - memory leak in lecroy-xstream function lecroy_xstream_state_get
Summary: memory leak in lecroy-xstream function lecroy_xstream_state_get
Status: UNCONFIRMED
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...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-24 19:56 CEST by Lucien Murray-Pitts
Modified: 2021-10-24 19:56 CEST (History)
0 users



Attachments

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:
https://github.com/sigrokproject/libsigrok/pull/162

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.