DevSkim icon indicating copy to clipboard operation
DevSkim copied to clipboard

Passing DevSkim Application Inspector rules can cause an index to be found that is out of range of the file

Open gfs opened this issue 3 years ago • 0 comments

Describe the bug As seen in https://github.com/microsoft/OSSGadget/issues/290 if you use devskim with Application Inspector rules (not officially supported) this can cause an out of bounds detection for an index. Regardless of that the rules may not be valid - the OAT operations we implemented should not return out of bounds indexes.

To Reproduce Run devskim with the fully packed application inspector rules against pkg:/left-pad:1.3.0 on oss-download.

Expected behavior Indexes are all inside the file.

gfs avatar Dec 09 '21 18:12 gfs