Hi again,

Jean-Pierre André wrote:
> Hi,
>
> I suspect problems while running ntfswipe with the new
> options :
>
> With option -s, I got no output after four minutes, with
> the cpu used at 100%. Is it normal, should I wait longer ?

An update on this one : the problem appears to be in the
following loop :

                 do
                 {
#if (!defined __STRICT_ANSI__) && (defined HAVE_RANDOM)
                         i = (size_t) (random () % NPAT);
#else
                         i = (size_t) (rand () % NPAT);
#endif
                 }
                 while ( selected[i] == 1 );

Apparently i gets random valid values, but selected[i] is always 1.
Should not there be an emergency exit when a pathological condition
arise ?

Side note : there was no srandom().

Regards

Jean-Pierre



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to