20
edits
Alex gaynor (talk | contribs) (Document another antipattern and safe pattern) |
Alex gaynor (talk | contribs) (fixed markup) |
||
Line 130: | Line 130: | ||
// do stuff with m | // do stuff with m | ||
} | } | ||
</pre> | |||
This pattern is not safe! An attacker can send a value for ''value'' that is not valid for ''MyEnum''. Then later code will mishandle it! | This pattern is not safe! An attacker can send a value for ''value'' that is not valid for ''MyEnum''. Then later code will mishandle it! |
edits