Security/Sandbox/IPCguide: Difference between revisions

Jump to navigation Jump to search
fixed markup
(Document another antipattern and safe pattern)
(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!
20

edits

Navigation menu