Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Source code in C# preprocessor directives and Line numbers from the PDB file

One of third party open-source libraries in my project raised a security concern when scanned with Veracode. However, when I checked the source code for the line numbers the issues were raised, they had totally different code without any vulnerability.

Do the line numbers inferred from PDB files include source code present in preprocessor directives even if the symbol is not defined?

like image 898
ganeshran Avatar asked Nov 26 '25 06:11

ganeshran


1 Answers

One of C#'s blessings is a preprocessor that cannot change line numbers.

P.S: This question was answered in the comments

like image 74
ganeshran Avatar answered Nov 28 '25 21:11

ganeshran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!