Author Topic: codeblocks may ruin your personal data file  (Read 3648 times)

flyinghearts

  • Guest
codeblocks may ruin your personal data file
« on: November 26, 2012, 04:10:14 pm »


I accidentally ran codeblocks in a sandbox created by sandboxie. And suddenly, sandboxie complain about failing to put a huge file at the root drive(F:) into the sandbox,which suggested that codeblocks tried to open an unnecessary file with write access.

So I hooked the CreateFileW api hoping to find out what files does codeblocks open during its startup time. According to the log file, codeblocks would open all the files under root drive to write. I didnot check whether codeblocks tried to write something to the opened files or not.

The problem is caused by File Manager Plugin, and could be fixed by simply disabling it.

PS, I was also suprising to find that the file resources.zip was opened 315 times!


extra infomation:
   tested version: 12.11 RC2
   OS:  Windows Embedded Standard 7   chinese
   installed directory: f:\ide\codeblocks
   
some part of the log fiile:

22:36:30 40000000 1 F:\test1
22:36:30 40000000 1 F:\test2.doc
22:36:30 40000000 1 F:\test3.avi
22:36:30 40000000 1 F:\test4.txt
22:36:30 1 1 F:\
(40000000 means GENERIC_WRITE, and the folling 1 means open the file successfully)


[attachment deleted by admin]

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: codeblocks may ruin your personal data file
« Reply #1 on: November 26, 2012, 06:51:54 pm »
This sounds strange to me. FileManager shouldn't be opening or creating any files in the active directory (or directories). All it does is scan for the list of files and uses the OSes filesystem monitoring.