Changeset 1743 for trunk/eraser6


Ignore:
Timestamp:
02/03/10 01:37:27 (4 years ago)
Author:
lowjoel
Message:

Forward port from Eraser 6.0: Fixed code usage error: When we find a directory in the list of plausible deniability decoy files we would add the files in the directory to the list. This results in directory contents being added recursively for every decoy we copy. In addition, we also did not check that the files in the list of decoys exist and we just picked any one. This could have resulted in non-existent files being picked for use which throws a FileNotFoundException?.

Location:
trunk/eraser6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6

  • trunk/eraser6/Eraser.Manager/FileSystem.cs

    r1675 r1743  
    114114            { 
    115115                string shadowFile = null; 
    116                 IList<string> entries = ManagerLibrary.Settings.PlausibleDeniabilityFiles; 
     116                List<string> entries = new List<string>( 
     117                    ManagerLibrary.Settings.PlausibleDeniabilityFiles); 
    117118                Prng prng = PrngManager.GetInstance(ManagerLibrary.Settings.ActivePrng); 
    118119                do 
     
    136137                    entries.RemoveAt(index); 
    137138                } 
    138                 while (shadowFile == null || shadowFile.Length == 0); 
     139                while (shadowFile == null || shadowFile.Length == 0 || 
     140                    !System.IO.File.Exists(shadowFile)); 
    139141                shadowFileInfo = new FileInfo(shadowFile); 
    140142            } 
Note: See TracChangeset for help on using the changeset viewer.