Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 351960 Details for
Bug 474780
net-dialup/gtkterm-0.99.5 - segmentation fault when sending hexadecimal data
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that fixes the bug
gtkterm-0.99.5-send-hex.patch (text/plain), 667 bytes, created by
Robert Pearce
on 2013-06-25 22:47:45 UTC
(
hide
)
Description:
Patch that fixes the bug
Filename:
MIME Type:
Creator:
Robert Pearce
Created:
2013-06-25 22:47:45 UTC
Size:
667 bytes
patch
obsolete
>diff -ur gtkterm-0.99.5/src/widgets.c gtkterm-0.99.5.fixed/src/widgets.c >--- gtkterm-0.99.5/src/widgets.c 2012-07-18 23:32:43.000000000 +0100 >+++ gtkterm-0.99.5.fixed/src/widgets.c 2012-07-18 23:50:44.000000000 +0100 >@@ -604,12 +604,19 @@ > guchar val; > guint val_read; > guint sent = 0; >- gchar written[3]; >+ gchar written[4]; > gchar *all_written; > > text = (gchar *)gtk_entry_get_text(GTK_ENTRY(widget)); >+ i = strlen(text); > >- all_written = g_malloc(strlen(text) * 2); >+ if ( i == 0 ) >+ { >+ Put_temp_message("No bytes sent", 1500); >+ return FALSE; >+ } >+ >+ all_written = g_malloc(i*2); > all_written[0] = 0; > > current = text;
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 474780
: 351960