Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

Comment The most important concept in WinSxS (Score 4, Informative) 433

Hands up anyone who knows what an "activation context" is! If you don't you have no idea what WinSxS does, how it does it or how to diagnose it when it goes wrong.

In my opinion, WinSxS is a good mechanism, or at least as good as Microsoft could have made it while working within the constraints of history. However, WinSxS cannot be used in the real world without properly understanding it, and achieving that understanding is very painful indeed. The MSDN documentation is piecemeal, appears incomplete and inaccurate in a few places and lacks a proper overview. I think the only reason I properly twigged what activation contexts are about is that I had recently written a mechanism that operated on similar principles (a thread-local stack of context-related information).

I wrote a Wiki page at work describing what (I think) WinSxS's motivation is, how it works and some of the problems it suffers from. I'd like to put it somewhere on the public internet - any suggestions? It should ideally be somewhere wiki-like where people can correct its inevitable inaccuracies without me having to maintain it, but I'm not sure it's appropriate for wikipedia.

Comment Re:No - there are plenty of safer alternatives (Score 1) 486

I'm assuming this was due to a typo on the first line (and presumably no code reviews). With memcpy_s and the same development practices, this would most likely become:

char *buffer = malloc(200);
memcpy(buffer,2000,message,2000);
send_message(buffer);
free(buffer);

, which would behave exactly the same and illustrate the point many people here are making about this really not fixing the supposed insecurity. The reason the code you show crashed is not that memcpy takes no destination size parameter. The reason is that the code contained an obvious typo that nobody noticed because there were no formal code reviews.

Slashdot Top Deals

If all else fails, lower your standards.

Working...