|
|
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Application crashes and OS instability can overwrite the currently edited file with junk
|
|
|
|
|
Re: Application crashes and OS instability can overwrite the currently edited file with junk [message #54607 is a reply to message #54606] |
Wed, 19 August 2020 16:35   |
jjacksonRIAB
Messages: 227 Registered: June 2011
|
Experienced Member |
|
|
I get what you're saying. I suppose I should be clearer myself. We agree that the file's likely not open... but the file's data is still in the editor. And you said the file is saved when focus changes. Well running the app would change the focus, causing a save, would it not?
I suppose it's not worth arguing if as you say it's not forked with memory sharing, but the scenario I was describing:
* you run badapp
* new child process is created, it shares memory with theide
* child process is badly behaved and modifies parent memory (by that, I mean it changes the text in the editor itself, the array backing it, not any open file)
* theide sees the focus has changed to the new process, opens the file and saves the mangled contents of the editor back to the file
So all I meant to suggest is that the contents of the editor are being overwritten, not the file directly.
|
|
|
Re: Application crashes and OS instability can overwrite the currently edited file with junk [message #54616 is a reply to message #54607] |
Fri, 21 August 2020 09:43  |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
jjacksonRIAB wrote on Wed, 19 August 2020 16:35I get what you're saying. I suppose I should be clearer myself. We agree that the file's likely not open... but the file's data is still in the editor. And you said the file is saved when focus changes. Well running the app would change the focus, causing a save, would it not?
I suppose it's not worth arguing if as you say it's not forked with memory sharing, but the scenario I was describing:
* you run badapp
* new child process is created, it shares memory with theide
* child process is badly behaved and modifies parent memory (by that, I mean it changes the text in the editor itself, the array backing it, not any open file)
* theide sees the focus has changed to the new process, opens the file and saves the mangled contents of the editor back to the file
So all I meant to suggest is that the contents of the editor are being overwritten, not the file directly.
Understood. Well, in all of my programming years I have learned to never say "100% impossible", so let us just say "99.9999% impossible"
|
|
|
Goto Forum:
Current Time: Sat Apr 26 14:35:27 CEST 2025
Total time taken to generate the page: 0.01058 seconds
|
|
|