Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dawkins
on June 11, 2012
|
parent
|
context
|
favorite
| on:
Security vulnerability in MySQL ubuntu
"Because the protocol uses random strings, the probability of hitting this bug is about 1/256."
Why 1/256?
jontro
on June 11, 2012
[–]
Because when the return value is truncated to a char, the last two bytes in the int would have to be 0x00, which is 1/256 assuming the return value is a completley random int.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Why 1/256?