- 
                Notifications
    
You must be signed in to change notification settings  - Fork 10.5k
 
Run static code analysis on IIS #58167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| { | ||
| 
               | 
          ||
| return * reinterpret_cast<const DWORD *>(const_cast<GUID*>(pguid)) + dwHash; | ||
| return pguid->Data1 + dwHash; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to call this one out since it's hidden amongst all the other changes.
typedef struct _GUID {
    unsigned long  Data1;
    unsigned short Data2;
    unsigned short Data3;
    unsigned char  Data4[ 8 ];
} GUID;
| strDescription.QuerySizeCCH()); | ||
| } | ||
| (VOID)strDescription.SyncWithBuffer(); | ||
| std::ignore = strDescription.SyncWithBuffer(); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignore this
        
          
                src/Servers/IIS/AspNetCoreModuleV2/AspNetCore/ModuleEnvironment.cpp
              
                Outdated
          
            Show resolved
            Hide resolved
        
      There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine, but I am very much not an expert.
        
          
                ...nstallers/Windows/AspNetCoreModule-Setup/IIS-Setup/IIS-Common/lib/IISSetup.CommonLib.vcxproj
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | 
           Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime.  | 
    
Fix our C++ projects to actually run static analysis.
Turns out we have >2000 errors but I didn't realize that before I started randomly updating bits of the code in reaction to some of the errors. So there is a random assortment of fixes before I ended up disabling a bunch of the rules.
We will work on enabling more rules in future PRs.