Zero-Second Cheat Glyph 零秒漏洞
On April 4th, 2015, developer Benedikt Allendorf posted screenshots on Google+ showing a Glyph Hack with a speed bonus of 214748% which produced over 2,000 items.
2015年4月4日,开发者Benedikt Allendorf在G+上展示了一个速度加成214748%,产生超过2000个物品的一个Glyph Hack。
Allendorf later explained that he had modified the Ingress Scanner app to tell Niantic's servers that he completed the Hack in -20 seconds.
Allendorf 随后解释说他修改了Scanner程序,告诉Niantic的服务器,他在负20秒内完成了这次Hack
Niantic's servers converted this to a ratio of -1.0. It then cast the negative 32-bit floating-point number into an unsigned 32-bit integer. Because the twos complement representation of a negative number has each bit set to 1, this returned a speed bonus of the maximum 32-bit unsigned integer value of 2,147,483,647. The server divided this by 1,000 to convert from milliseconds and used it to calculate the item drops.
Niantic的服务器把-20s转换成了-1的比率。随后又被从一个负的32位的浮点数转换成无符号的32位整数。因为每一位都为1,所以转换成的最大的32位整数值2,147,483,647。服务器随后用这个数除以1000并计算物品掉落。
The bug was quickly patched, and the cheat is no longer possible.
这个Bug很快被修复,不可再现了。
来源(https://ingress.fandom.com/wiki/Glyph_Hacking)
On April 4th, 2015, developer Benedikt Allendorf posted screenshots on Google+ showing a Glyph Hack with a speed bonus of 214748% which produced over 2,000 items.
2015年4月4日,开发者Benedikt Allendorf在G+上展示了一个速度加成214748%,产生超过2000个物品的一个Glyph Hack。
Allendorf later explained that he had modified the Ingress Scanner app to tell Niantic's servers that he completed the Hack in -20 seconds.
Allendorf 随后解释说他修改了Scanner程序,告诉Niantic的服务器,他在负20秒内完成了这次Hack
Niantic's servers converted this to a ratio of -1.0. It then cast the negative 32-bit floating-point number into an unsigned 32-bit integer. Because the twos complement representation of a negative number has each bit set to 1, this returned a speed bonus of the maximum 32-bit unsigned integer value of 2,147,483,647. The server divided this by 1,000 to convert from milliseconds and used it to calculate the item drops.
Niantic的服务器把-20s转换成了-1的比率。随后又被从一个负的32位的浮点数转换成无符号的32位整数。因为每一位都为1,所以转换成的最大的32位整数值2,147,483,647。服务器随后用这个数除以1000并计算物品掉落。
The bug was quickly patched, and the cheat is no longer possible.
这个Bug很快被修复,不可再现了。
来源(https://ingress.fandom.com/wiki/Glyph_Hacking)