Bugzilla – Attachment 103 Details for
Bug 499
PulseView crash caused by get_port_details() in Windows 7
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Initialize usb_path to NULL to avoid calling free() on unintialized pointer in sp_free_port()
init_usb_path.patch (text/plain), 347 bytes, created by
Boris Gjenero
on 2014-11-29 23:31:05 CET
(
hide
)
Description:
Initialize usb_path to NULL to avoid calling free() on unintialized pointer in sp_free_port()
Filename:
MIME Type:
Creator:
Boris Gjenero
Created:
2014-11-29 23:31:05 CET
Size:
347 bytes
patch
obsolete
>diff --git a/serialport.c b/serialport.c >index 4f42740..2ec2c2f 100644 >--- a/serialport.c >+++ b/serialport.c >@@ -85,6 +85,7 @@ SP_API enum sp_return sp_get_port_by_name(const char *portname, struct sp_port * > memcpy(port->name, portname, len); > > #ifdef _WIN32 >+ port->usb_path = NULL; > port->hdl = INVALID_HANDLE_VALUE; > #else > port->fd = -1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 499
: 103