This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] INT50-CPP. Do not cast to an out-of-range enumeration checker - cloned
AbandonedPublic

Authored by ZaMaZaN4iK on Oct 28 2018, 10:58 AM.

Details

Summary

Copied from https://reviews.llvm.org/D33672

Fixed some issues from previous revision

This checker implements a solution to the "INT50-CPP. Do not cast to an out-of-range enumeration value" rule. See https://www.securecoding.cert.org/confluence/display/cplusplus/INT50-CPP.+Do+not+cast+to+an+out-of-range+enumeration+value .

Diff Detail

Event Timeline

ZaMaZaN4iK created this revision.Oct 28 2018, 10:58 AM

I think commandeering that revision would be a better option, because that way we'll have the previous discussion and the patch in one place. You can commandeer a revision by scrolling down to the bottom, and selecting "Commandeer Revision" under the "Add Action..." drop down menu.

(Also, upload patches with full context.)

Now that we have a discussion on the original patch, let's abandon this one!

ZaMaZaN4iK abandoned this revision.Nov 3 2018, 8:37 AM