LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2021, 09:38 PM   #1
American Citizen
LQ Newbie
 
Registered: Jul 2021
Posts: 4

Rep: Reputation: Disabled
cut and paste is deciding to change a digit on its own, regardless of what was cut


Something unusual is happening with my cut and paste command, using the mouse. I ran the mouse over a section of text in one window and went to paste it into another window, when somehow one of the digits decided to change itself and it incremented by +1.. flickered, then went back to its original digit. This happened before when I cut and pasted data from a mathematical program, but sent the wrong answer (it was off by 1 digit) to my mathematical friend, who later asked me about my answer, since it was not correct.

Could a bug have gotten into this cut-and-paste operation?
 
Old 07-25-2021, 09:43 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
What distro/version/desktop?

I use cut-and-paste and copy-and-paste multiple times every day and have not encountered anything of this nature.

It's a long shot, but, if you start two GUI applications from terminals, then try cutting and pasting from one to another, there's chance something useful will appear in one or the other terminal windows.
 
Old 07-27-2021, 05:19 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by American Citizen View Post
Something unusual is happening with my cut and paste command, using the mouse. I ran the mouse over a section of text in one window and went to paste it into another window, when somehow one of the digits decided to change itself and it incremented by +1.. flickered, then went back to its original digit. This happened before when I cut and pasted data from a mathematical program, but sent the wrong answer (it was off by 1 digit) to my mathematical friend, who later asked me about my answer, since it was not correct.

Could a bug have gotten into this cut-and-paste operation?
cut-and-paste does not perform calculations on the string.
Which softwares and OSs were involved?
Can you reproduce the behaviour?
How exactly did it "go back"?
 
Old 07-27-2021, 05:36 AM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,310
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
There is also the question of hijacking the clipboard. It is especially easy if a page infected with javascript is allowed to run its scripts. However, injection of extra content can also be done using pure CSS. So you might be getting a backspace which then backs over the old number and overwrites it with a new number.

Edit: an example of hiding text: https://www.ush.it/team/ascii/hack-t...t_you_copy.txt

Last edited by Turbocapitalist; 07-27-2021 at 06:58 AM.
 
Old 07-28-2021, 05:26 PM   #5
American Citizen
LQ Newbie
 
Registered: Jul 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
What distro/version/desktop?

openSuse Linux Leap 15.2 version, 64 bit
up to date on all patches.
 
Old 07-28-2021, 05:27 PM   #6
American Citizen
LQ Newbie
 
Registered: Jul 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
There is also the question of hijacking the clipboard. It is especially easy if a page infected with javascript is allowed to run its scripts. However, injection of extra content can also be done using pure CSS. So you might be getting a backspace which then backs over the old number and overwrites it with a new number.

Edit: an example of hiding text: https://www.ush.it/team/ascii/hack-t...t_you_copy.txt
I think this is close to the true answer. Something in the background running javascript might be hijacking the clipboard.
 
Old 07-28-2021, 05:30 PM   #7
American Citizen
LQ Newbie
 
Registered: Jul 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
cut-and-paste does not perform calculations on the string.
Which softwares and OSs were involved?
Can you reproduce the behaviour?
How exactly did it "go back"?
true cut and paste won't change anything, but it was almost spooky watching the digit change, then finally decide to go back to its original value

openSuse Leap 15.2 was the current linux.. and I don't know the version level of the cut-and-paste code.

I have only seen this twice now and it seems very infrequent.

I meant a digit displayed, like "6" then suddenly the digit went to "7", then flickered between "6" and "7" like it was trying to decide what to do, then finally went back to "6"

Very unusual behavior!
 
Old 07-28-2021, 06:33 PM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
I'll climb way out on this limb and suggest it has nothing to do with cut and paste or any other software, but may be a failing bit in memory. The fact that it was changed in the file you sent elsewhere suggests the data actually changed. If the clipboard memory buffer were mapped into video memory and happened to have an unstable bit in the memory or the access path, it would account for both the flicker and the ultimately altered data. Unless malware were involved I would seriously doubt it is software related.

If it is a hardware failure you will find out soon enough, probably in other ways! I would suggest running memtest or other memory testing application and see if it turns up anything.
 
Old 07-29-2021, 02:54 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Until OP tells us more about the softwares involved I call shenanigans.
Not saying it never happens, but if I had a penny for every time somebody claimed they got hacked...

If the browser is involved, as was said, javascript etc., it's relatively easy to conceive that this happens. Then we need to know which site, which browser, etc.
Also, where exactly can you see the digits change? In a browser text entry? Again, which web page is that on.

If other desktop software is involved, I still cannot conceive how this can happen, esp. in a way that you see the numbers changing back and forth.
Again, I'm not saying you definitely didn't get hacked, but more info is required. Much more.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Read digit by digit in variable pedropt Programming 6 12-25-2017 04:24 AM
LXer: Chakra Linux: Its Own Beast, Its Own Beauty LXer Syndicated Linux News 0 08-18-2017 05:42 PM
LXer: Microsoft has created its own FreeBSD. Repeat. Microsoft has created its own FreeBSD LXer Syndicated Linux News 0 06-09-2016 11:42 AM
LXer: Microsoft has developed its own Linux. Repeat. Microsoft has developed its own Linux LXer Syndicated Linux News 0 09-18-2015 04:51 PM
Substitue single-digit, two-digit, and 3-digit numbers with text using sed dmason165 Programming 13 08-07-2009 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration