Re:Java Hangs When Converting 2.2250738585072012e-308
by stevie_wilks on Tuesday February 01, 2011 @07:41AM
(#2165310)
Excellent point. I'm going to have some tests to run when I get in to work this morning.
Re:Java Hangs When Converting 2.2250738585072012e-308
by ashutoshmehra on Wednesday February 02, 2011 @09:20AM
(#2170286)
Yup. A comment on the original webpage reported that this value appears to hang/time-out Google Spreadsheet. I tested and it indeed was the case. So there are going to be lots of places one can fool around on the input side only to send the server thread into a loop. That's bad.
Re:Java Hangs When Converting 2.2250738585072012e-308
by sigzero on Tuesday February 01, 2011 @09:55AM
(#2165670)
And yet...in 10+ years...it hasn't been a problem? Certainly the need to fix it but saying it is going to be a "big problem" is a bit theatrical.
Re:Java Hangs When Converting 2.2250738585072012e-308
by steveklabnik on Tuesday February 01, 2011 @11:20AM
(#2166019)
Well, yeah. Nobody _accidentally_ hit upon this number, but now that it's a known way to commit a denial of service attack, people are going to take advantage of it.
Imagine your response, but about a kernel privilege escalation bug:
"And yet...in 10+ years...it hasn't been a problem? Certainly the need to fix it but saying it is going to be a "big problem" is a bit theatrical."
Re:Java Hangs When Converting 2.2250738585072012e-308
by VMG on Tuesday February 01, 2011 @08:56AM
(#2165452)
I tried to dig up a list of websites with a java-backend but my google-fu is not strong enough. I don't think that there are actually many big sites running on java.
Re:Java Hangs When Converting 2.2250738585072012e-308
by al05 on Tuesday February 01, 2011 @09:19AM
(#2165518)
There are tons of sites running on java. Possibly more than php.
Re:Java Hangs When Converting 2.2250738585072012e-308
by quomopete on Tuesday February 01, 2011 @10:56AM
(#2165909)
Yup -
http://wiki.java.net/bin/view/Projects/RealWorldJSFLinks
Anecdotally, a lot of those [\w+]tube porn sites probably run on a Java server considering the heavy lifting that goes on there.
Re:Java Hangs When Converting 2.2250738585072012e-308
by exec on Tuesday February 01, 2011 @12:46PM
(#2166403)
Most of internet banking systems in my country run on Java. And most of them can be affected if you know where to put this number.
Re:Java Hangs When Converting 2.2250738585072012e-308
by Sandman on Tuesday February 01, 2011 @01:42PM
(#2166663)
Yes, but fortunately, there is not much reason why anybody would use double when developing a banking system.
Re:Java Hangs When Converting 2.2250738585072012e-308
by yyyy on Wednesday February 02, 2011 @02:35PM
(#2171710)
They don't have to use it directly.
GET / HTTP/1.0
Accept-Language: en;q=2.2250738585072012e-308
If you're running Tomcat and you call getLocale() on that servlet request, you're toast.
Re:Java Hangs When Converting 2.2250738585072012e-308
by wingo on Tuesday February 08, 2011 @09:26AM
(#2192917)
This is precisely why "q" is defined only to accept three digits after the decimal. It's actually not a floating point number, and anyone who parses it as such is just being lazy.
"q" is more properly represented natively as an integer between 0 and 1000.
This is going to be a big problem.