docs/security/checklist.md
base::Unretained, single
ownership wherever possible).base::span
over pointer arithmetic.DCHECKs don't
prevent security incidents, because release builds don't have them, so use
CHECKs unless calculating the condition is expensive.base::Unretained without a comment explaining how you can
prove the object lifetimes are safe - it's responsible for a high percentage of
our exploitable bugs. The best alternative? Consider SafeRef<T> or
WeakPtr<T> - or ask us!For more information, see our security guidelines, FAQ and suggestions for what to do if you get a security bug. And don't hesitate to contact [email protected] - we want to help. Thanks for reading!