Menu

#1 FRUC crashed on non-existant key

open
nobody
None
5
2006-07-11
2006-07-11
Ed Davison
No

FRUC crashes when it hits a key in the ini file that
does not exist in the regisry:

"[Tue Jul 11 12:48:05 2006] dumpel -l security -c" log
command sent.
dumpel -l security -c results data sent.
HKCU\Software\Microsoft\Windows\CurrentVersion\RunServices
not found

No such root key (HKCR) at C:\Documents and
Settings\davisone\Desktop\fru\fruc.exe line 308

C:\Documents and Settings\davisone\Desktop\fru>

Discussion

  • Ed Davison

    Ed Davison - 2006-07-12

    Logged In: YES
    user_id=28779

    Turns out to be a typo on my part in the .ini file.

    The code on line 308 is the one that fails:
    if (my $reg = $Registry-{$hive}) {

    $hive is checked for values prior to that point but does not
    check for invalid values.

     
  • Ed Davison

    Ed Davison - 2006-07-12

    Logged In: YES
    user_id=28779

    The following patch will fix this:

    ---
    298a299
    > my $orig_hive = $hive;
    300a302,304
    > if ($orig_hive eq $hive) {
    > return "Error Invalid reg key specified:
    ".$hive."/".$key."\n";
    > }

     
  • Ed Davison

    Ed Davison - 2006-07-12

    patch file from last entry

     

Log in to post a comment.

MongoDB Logo MongoDB