discomfitor pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=8d4b06617fd9a9a71e08a63063d739ee56ef4f36

commit 8d4b06617fd9a9a71e08a63063d739ee56ef4f36
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Aug 13 14:43:04 2015 -0400

    use event length instead of strlen() when dropping something into a terminal
    
    the data member of Elm_Selection_Data may not be nul terminated, so
    any string operation on this is liable to crash
---
 src/bin/termio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index 31ddca4..9992b22 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -5664,7 +5664,7 @@ _smart_cb_drop(void *data, Evas_Object *o EINA_UNUSED, 
Elm_Selection_Data *ev)
           evas_object_smart_callback_call(obj, "popup", ev->data);
      }
    else
-     termpty_write(sd->pty, ev->data, strlen(ev->data));
+     termpty_write(sd->pty, ev->data, ev->len);
    return EINA_TRUE;
 }
 #endif

-- 


Reply via email to