View Issue Details

IDProjectCategoryView StatusLast Update
0006489JEDI Code LibraryJclSysInfopublic2016-08-02 18:55
ReporterhorsiAssigned ToAHUser 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product VersionVersion 2.5 (Subversion repository/Daily zips) 
Target VersionFixed in Version 
Summary0006489: Indirect call to uninitialized JclStrings.StrCaseMap variable from JclSysInfo module.
DescriptionDuring initialization of JclSysInfo module, function "GetWindowsMajorVersionNumber" (indirectly) reads the uninitialized variable "JclStrings.StrCaseMap" ("JclStrings.StrCaseMapReady" is set to "False").

JclSysInfo module
-> initialization section
   -> InitSysInfo procedure
      -> GetWindowsVersion function
         -> GetWindowsMajorVersionNumber function
            -> JclStrings.StrBefore
               -> StrFind
                  -> StrIPos
                     -> StrUpper
                        -> StrUpperInPlace
                           -> StrCase
                              -> StrCaseMap variable

For this reason:
1) the Windows version can be determined incorrectly
2) or even it might not be able to start the program because of "Runtime error 217" /GetWindowsMajorVersionNumber calls StrBefore which might returns '', and then StrToInt('') raises exception/
Additional InformationProbably duplicate of: 0006477 and 0006480.
TagsNo tags attached.
Fixed in GIT commit
Fixed in SVN revision
IDE versionDelphi 7

Relationships

has duplicate 0006519 resolvedAHUser GetWindowsMajorVersionNumber strToInt(StrBefore('.' Crash on Windows Storage Server 2012 R2 in JclSysInfo.pas > initialization s 

Activities

AHUser

2016-08-02 18:55

developer   ~0021304

Fixed in master branch.

Issue History

Date Modified Username Field Change
2016-01-20 11:58 horsi New Issue
2016-01-20 11:58 horsi IDE version => Delphi 7
2016-08-02 18:55 AHUser Note Added: 0021304
2016-08-02 18:55 AHUser Status new => resolved
2016-08-02 18:55 AHUser Resolution open => fixed
2016-08-02 18:55 AHUser Assigned To => AHUser
2016-08-03 16:45 AHUser Relationship added has duplicate 0006519