Skip to content

Comment on Security vulnerability in MySQL ubuntu

Comments

"Because the protocol uses random strings, the probability of hitting this bug is about 1/256."

Why 1/256?

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.