bugGNU Octave - Bugs: bug #58844, Unintended binary content copied...

 
 

bug #58844: Unintended binary content copied into clipboard

Submitted by:  Hg200 <hg200>
Submitted on:  Tue 28 Jul 2020 07:59:25 PM UTC  
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  hg200 Open/Closed:  Open
Release:  dev Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 29 Jul 2020 03:59:35 PM UTC, comment #2: 

I was able to reproduce on mxe-octave-stable. Clipboard as well as segfault.

GNU Octave Version: 6.0.1 (hg id: af1a9c1db88e)
MINGW32_NT-6.1 Windows 7  x86_64
mxe-octave hg id is be0a7ce498e6

Attached backtrace looks similar.

Maybe we should track in two different reports?

(file #49574)

Hg200 <hg200>
Tue 28 Jul 2020 09:59:33 PM UTC, comment #1: 

Attached the backtrace, although no debug infos are available. Anyway - maybe we can do a scintilla update?!?

- MXE is based on fb50ae69121c including some bugfixes planned for the release
- GNU Octave Version is based on hg id: 43c285a20829
- Operating System: MINGW32_NT-6.1 Windows 7  x86_64

The 64 bit seems to be more vulnarable than the 32 bit version.

Also a copy of some example clipboard data content that sometimes forces the segfault.

(file #49562, file #49563)

Hg200 <hg200>
Tue 28 Jul 2020 07:59:25 PM UTC, original submission:  

Hello,

during the MXE-Octave on Windows 7 tests i came across the following two observations. The first issue is that some extra "binary" content can be unintentionally copied into the clipboard and the second issue that Octave can crashes if that content is pasted into the Octave's Editor.

- The problem appears only on MXE Windows. Not on Linux.
- I'm on the development branch of Octave.
- I haven't tested on stable (so far).

In order to reproduce it is necessary to repeat the steps as follows:

1.)
Start octave --gui with it's "default" settings (i.e. no .config file). The command window is then docked.

2.)
On the command window put the cursor to the position at bottom right and start marking the text. For reference see attached "01_copy.png"

3.)
Move the mouse cursor to the position on the top left as shown in "01_copy.png". Then release the touchpad button / mouse button. Text remains marked. Note: It is important to set the cursor "outside" the command-area, somewhat above and to the left of the word "GNU". Otherwise you will not see the issue. The amount of binary content copied to the clippboard seems to depend on the cursor-position.

4.)
Press Ctrl-c to copy the selection.

5.)
Move to notepad (external editor) or switch to the Octave Editor Tab and paste the clipboard content with Ctrl-V

6.)
Result can be seen in the picture "02_paste.png". If the step is repeated more often Octave can crash as the contend is pasted into the editor ("03_crash.png"). When pasted to notepad you can also see the unwanted content. So it is copy / clipboard problem.

The problem is: I tried again to reproduce the crash with gdb but with the current executable i can't force the crash. Have to try later again. Sorry ;-(

Hg200 <hg200>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #49574:  segfault_3.txt added by hg200 (6KiB - text/plain)
file #49562:  segfault_2.txt added by hg200 (7KiB - text/plain)
file #49563:  clipboardcontent.txt added by hg200 (2KiB - text/plain)
file #49561:  stepstoreproduce.tar added by hg200 (120KiB - application/x-tar)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hg200 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-07-29 hg200 Attached File- => Added segfault_3.txt, #49574
    2020-07-28 hg200 Attached File- => Added segfault_2.txt, #49562
        Attached File- => Added clipboardcontent.txt, #49563
    2020-07-28 hg200 Attached File- => Added stepstoreproduce.tar, #49561

    Back to the top


    Powered by Savane 3.5