Changeset 2430


Ignore:
Timestamp:
Jan 22, 2011, 11:28:57 PM (10 years ago)
Author:
schwittmann
Message:

Fixed exception on systems where no processorId is available

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPluginBase/Miscellaneous/UniqueIdentifier.cs

    r2412 r2430  
    2525            foreach (ManagementObject mob in moc)
    2626            {
    27                 cpuids += mob.Properties["processorID"].Value.ToString();
     27                var cpuid = mob.Properties["processorID"].Value;
     28                if (cpuid != null)
     29                {
     30                    cpuids += cpuid.ToString();
     31                }
    2832            }
    2933
  • trunk/CrypPlugins/KeySearcher/ExternalClient/Main.cpp

    r2417 r2430  
    4545    }
    4646
    47     const char* password = "";
     47    int pwlen = (argc==4?strlen(argv[3]):0) +1;
     48    char password[pwlen];
     49    bzero(password, pwlen);
    4850    if(argc == 4)
    4951    {
    50         password = argv[3];
     52        strcpy(password, argv[3]);
     53        bzero(argv[3], pwlen);
    5154    }
    5255
Note: See TracChangeset for help on using the changeset viewer.