r/programming • • Apr 09 '14

Theo de Raadt: "OpenSSL has exploit mitigation countermeasures to make sure it's exploitable"

[deleted] — view deleted post

2.0k Upvotes

661 comments sorted by

View all comments

Show parent comment

16

u/parc Apr 09 '14

They noticed malloc was slow. Where you get bitten by premature optimization is assuming because it's slow then it must be a problem. It's entirely possible the slowness had no real detrimental effects in the system as used in real life.

18

u/roboduck Apr 09 '14

If you "notice" that something is slow, that means that you consider it a problem.

3

u/[deleted] Apr 09 '14

[removed] — view removed comment

10

u/ggtsu_00 Apr 09 '14

AND that is what leads to building custom allocators, which is exactly what happened here.

3

u/parc Apr 09 '14

It shouldn't. Noticing something is slow should trigger the "make a note to come back and analyze this once all the bugs are fixed." If it doesn't meet an SLA, it's a bug and should be fixed. But just noticing that it's not as fast as you'd like does NOT mean you SHOULD be concerned about it.

3

u/ciny Apr 09 '14

Noticing something is slow should trigger the "make a note to come back and analyze this once all the bugs are fixed."

That's true to some degree. if the performance is REALLY slow. as in something you expect to take 10s takes 100s then you might consider it a higher priority problem...

9

u/SquareWheel Apr 09 '14

Definitely. They should have relied on the system rather than rolling their own solution.

I'll be curious to see the fallout from all this. At the very least I bet a lot of low-level developers are eyeing their own code nervously.