
vpopescu (Community Member) asked a question.
One of my programs is reporting flaws on line #1 of my code, and there is no executable code there (lines 1-15 are the file's comment header block)
What could be causing this, and how do I fix it?
Screenshot: same module and file, one flaw shows the correct flaw line, the next two show line 1.
.png)
Hi @vpopescu (Community Member) ,
Veracode Static Analysis may report flaws on line 1 if no debug information is available for a given operation in the binary. With .NET we see this happen with frequent use of async (which generates some structures that don't have debug information).
In this case we recommend:
If none of these help you locate the line of code I would recommend you schedule a consultation call to discuss. You can check out this knowledge article (https://community.veracode.com/s/article/How-to-schedule-a-consultation-call) on how to schedule a consultation call with us.
Please consider letting us know how to better support you in these cases by letting us know your thoughts with Veracode Community Ideas at https://community.veracode.com/s/ideas .
Thank you,
Boy Baukema