This repository was archived by the owner on Nov 12, 2026. It is now read-only.
Repository navigation
Performance fix for CA5360 (Do not call dangerous methods in deserialization) - #6539
Merged
Merged
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6539 +/- ##
========================================
Coverage 96.42% 96.42%
========================================
Files 1372 1372
Lines 319881 319776 -105
Branches 10271 10268 -3
========================================
- Hits 308438 308348 -90
+ Misses 8985 8976 -9
+ Partials 2458 2452 -6 |
LLLXXXCCC
reviewed
Mar 20, 2023
| </data> | ||
| <data name="DoNotCallDangerousMethodsInDeserializationMessage" xml:space="preserve"> | ||
| <value>When deserializing an instance of class {0}, method {1} can call dangerous method {2}. The potential method invocations are: {3}.</value> | ||
| <value>When deserializing an instance of class '{0}', method '{1}' can directly or indirectly call dangerous method '{2}'</value> |
There was a problem hiding this comment.
Suggested change
| <value>When deserializing an instance of class '{0}', method '{1}' can directly or indirectly call dangerous method '{2}'</value> | |
| <value>When deserializing an instance of class '{0}', method '{1}' can directly or indirectly call dangerous method '{2}'.</value> |
Author
There was a problem hiding this comment.
We avoid a period at the end of the message for single line messages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Performance fix for CA5360: Stop tracking intermediate methods in CA5360 analysis. This seems to cause exponential increase in allocations and memory usage during analysis.