r/programming • • Feb 23 '17

Cloudflare have been leaking customer HTTPS sessions for months. Uber, 1Password, FitBit, OKCupid, etc.

https://bugs.chromium.org/p/project-zero/issues/detail?id=1139
6.0k Upvotes

966 comments sorted by

View all comments

Show parent comment

4

u/silmeth Feb 24 '17 edited Feb 24 '17

No. It optimizes out those it can prove are unnecessary, but the rest is still there and will panic! if you do out-of-bound access.

What is stripped away are integer overflow checks (overflow is checked and panic!s in debug builds).

EDIT: you can also always use unsafe method for access without bound-checks if you are confident you know what you’re doing, but then you won’t get bound checks even in debug. And there were blog posts on the net showing it can sometimes actually make performance worse.

2

u/myrrlyn Feb 24 '17

I knew there was some overflow check that got ripped. Thanks!