Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
Programming

Whatever Happened To Programming? 623

Mirk writes "In a recent interview, Don Knuth wrote: 'The way a lot of programming goes today isn't any fun because it's just plugging in magic incantations — combine somebody else's software and start it up.' The Reinvigorated Programmer laments how much of our 'programming' time is spent pasting not-quite-compatible libraries together and patching around the edges." This 3-day-old article has sparked lively discussions at Reddit and at Hacker News, and the author has responded with a followup and summation.
Data Storage

Thanks For the ... Eight-Track, Uncle Alex 633

Uncle Alex writes "My niece just turned one year old and her parents have asked that, instead of the usual gifts, we each contribute something to a time capsule to be opened on her 17th birthday. Multiple members of my family want to contribute digital data — text, video, music files. They came to me (the closest thing to a geek our family has) wondering: what's the best way to save the data to ensure she'll actually be able to see it in 16 years? Software might be out of date, hardware may no longer be used... any suggestions?"
Red Hat Software

Red Hat Is Now Part of the S&P 500 128

phantomfive writes "Red Hat has made it onto the S&P 500, an important measure of the stock market. It is replacing CIT, which is expected to go bankrupt after the government refused to bail them out. Red Hat is the first Linux company to make it on to the S&P 500. While this means little directly for the company, it is an indication of the importance Linux is taking on in the world."

Classilla, a New Port of Mozilla To Mac OS 9 170

oberondarksoul writes "Every now and then, you hear about a new port of Mozilla to one of the lesser-used platforms. Recently, a new version of Mozilla has been released for Mac OS 9 — an operating system no longer sold or supported, and with no new hardware available to buy. Dubbed Classilla, it aims to provide 'a modern web browser running again on classic Macs,' and the currently-released build seems to work well on my old PowerBook 1400 — despite being a little memory-hungry."

Comment There's a buffer overflow even in the fix... (Score 2, Informative) 161

argv[2] gets strcat-ted with DEVICE_PREFIX:

DEVICE_PREFIX = "/dev/"
strcpy( &myDeviceName[0], DEVICE_PREFIX );
strcat( &myDeviceName[0], argv[2] );

and myDeviceName is declared as a 0..255 array.

So the right check should be:

myDeviceLength > 250

Even worse, there's the following code after the strcpy-strcat couple:

strcpy( &myRawDeviceName[0], RAW_DEVICE_PREFIX );
strcat( &myRawDeviceName[0], argv[2] );

and
RAW_DEVICE_PREFIX = "/dev/r"

myDeviceLenght should not be more than 249 character long.

So the right code should be:

myDeviceLength = strlen( argv[2] );
// Added check for lengths of myDeviceName over 255 chars; 16/12/2003 Namu
if (( myDeviceLength < 2 ) || (myDeviceLength > 249))
{
goto ExitThisRoutine;
}

Slashdot Top Deals

Top Ten Things Overheard At The ANSI C Draft Committee Meetings: (4) How many times do we have to tell you, "No prior art!"

Working...