Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
Get HideMyAss! VPN, PC Mag's Top 10 VPNs of 2016 for 55% off for a Limited Time ×

Comment Re:Linus is right. (Score 4, Informative) 576

Not to state the obvious, but here's the definition of `overflow_ubus`

static inline bool overflow_usub(unsigned int a, unsigned int b,
unsigned int *res)
{
*res = a - b;
return *res > a ? true : false;
}


So the 2 conditionals from the patch are completely idiotic and wrong.
`overflow_ubus` not only makes an unnecessary assignment to `mtu`, but does a check after that assignment, and then you need another check for it outside of `overflow_ubus`.

In general, the proposed patch conditionals could be rewritten as

unsigned int oldmtu = mtu;
mtu -= hlen + sizeof(struct frag_hdr);
if (mtu > oldmtu || mtu <= 7)
goto fail_toobig;


Now that's ugly!

Comment FTP? (Score 1) 58

Anyone read the article?
The vulnerability is only exploitable when fetching an FTP directory, recursively, from a malicious server.

Yeah, it's a hole, but it's not shellshock. Stop bitching around and just update your box.

Comment Do you really need this precision? (Score 2) 239

Come on, guys, you'll ever only use FPU instructions when you need speed, not precision.
Anyone remember 0x5f375a86?
The precision used in Quake's source code wasn't even nearly comparable to the FPU, but was fast enough.

In other words, you'll never calculate shopping cart totals minus discounts and other stuff this way (or, at least, you shouldn't!)
There's BigDecimal in Ruby/Java, decimal.Decimal in Python, GMP in C/C++, etc...

Comment Re:Why? (Score 1) 309

Javascript, which is horrendously bad for large projects

A few months ago I had this project that consisted of nearly 200 controllers and 100-150 directives / modules (AngularJS)
Tell me how bad is it?

The asset pipeline compiled this to a single file in production, which was some 300K. I agree that this is a heavy load, but we're talking regular website, not a mobile one.

Comment Human water [mis]use? (Score 1) 324

I think that it's not the regular water use that's the problem, but the *misuse* - mainly manual underground water extraction...
Normally, water that has come to the ocean will eventually return to the ground in the form of rain, rivers will be full, etc...
Manually extracted water could not be returned that easily to the source. I'm not aware of the way that rivers are formed, or if/how they refill but this doesn't seem to be the problem in this case.
And, uhm, yes. The ocean level is rising since I remember. Deal with it.

Slashdot Top Deals

"355/113 -- Not the famous irrational number PI, but an incredible simulation!"

Working...