Skip to main content

Asus lets processor security fix slip out early, AMD confirms patch in progress

3 months 2 weeks ago
Answers on a postcard to what 'Microcode Signature Verification Vulnerability' might mean

AMD has confirmed at least some of its microprocessors suffer a microcode-related security vulnerability, the existence of which accidentally emerged this month after a fix for the flaw appeared in a beta BIOS update from PC maker Asus.…

Iain Thomson

Scientists Detect Chirping Cosmic Waves In an Unexpected Part of Space

3 months 2 weeks ago
Scientists have detected cosmic "chorus waves" resembling bird chirps over 62,000 miles from Earth, a region where such waves have never been observed. "Scientists still aren't sure how the perturbations happen, but they think Earth's magnetic field may have something to do with it," reports the Associated Press. From the report: The chorus has been picked up on radio antennas for decades, including receivers at an Antarctica research station in the 1960s. And twin spacecraft -- NASA's Van Allen Probes -- heard the chirps from Earth's radiation belts at a closer distance than the newest detection. The latest notes were picked up by NASA's Magnetospheric Multiscale satellites, launched in 2015 to explore the Earth and sun's magnetic fields. The new research was published Wednesday in the journal Nature. Chorus waves have also been spotted near other planets including Jupiter and Saturn. They can even produce high-energy electrons capable of scrambling satellite communications. "They are one of the strongest and most significant waves in space," said study author Chengming Liu from Beihang University in an email. The newfound chorus waves were detected in a region where Earth's magnetic field is stretched out, which scientists didn't expect. That raises fresh questions about how these chirping waves form. "It's very captivating, very compelling," Jaynes said. "We definitely need to find more of these events."

Read more of this story at Slashdot.

BeauHD

CodeSOD: Stripped of Magic

3 months 2 weeks ago

A Representative Line is a short snippet that makes you think, "wow, I'd hate to see the rest of the code." A CodeSOD is a longer snippet, which also frequently makes you think, "wow, I'd hate to see the rest of the code," but also is bad in ways that require you to look at the relationship between the lines in the code.

I bring that up, because today's code sample is a long section, but really, it's just a collection of representative lines. Each line in this just makes me die a little on the inside.

Belda found this:

## helper functions function stripmagic($x) { return get_magic_quotes_gpc() ? stripslashes($x) : $x; } function pre_r(&$x) { return '<pre>'.PHSC(print_r($x, true)).'</pre>'; } function PSS($x) { return str_replace('\\"','"',$x); } function PVS($x) { return preg_replace("/\n[^\\S\n]*(?=\n)/", "\n<:vspace>", $x); } function PVSE($x) { return PVS(PHSC($x, ENT_NOQUOTES)); } function PZZ($x,$y='') { return ''; } function PRR($x=NULL) { if ($x || is_null($x)) $GLOBALS['RedoMarkupLine']++; return $x; } function PUE($x) { return preg_replace('/[\\x80-\\xff \'"<>]/e', "'%'.dechex(ord('$0'))", $x); } function SDV(&$v,$x) { if (!isset($v)) $v=$x; } function SDVA(&$var,$val) { foreach($val as $k=>$v) if (!isset($var[$k])) $var[$k]=$v; }

This collection of one-line "helper" functions has it all. Cryptic function names. PRR mutates global variables. PZZ just… returns an empty string. I don't know what PHSC does, and I don't want to, but it's called inside of pre_r and PVSE. Which I also don't know what they do. Speaking of PVSE, I note the regex is using backreferences, which is some advanced regex but I still have no idea what it's doing. I could figure it out, but I don't want to. PUE looks like it might be handling some misencoded characters, maybe. SDV is maybe kinda a coalesce function.

Each line is its own representative line. None of this is code I'd want to maintain.

On the flip side, the abbreviated function names, when read in reverse order, are exactly the sounds I made when I read this code: "SDVASDVPUEPRRPZZPVSEPVSPSS".

It's okay, the doctors say I'll make a full recovery.

[Advertisement] Plan Your .NET 9 Migration with Confidence
Your journey to .NET 9 is more than just one decision.Avoid migration migraines with the advice in this free guide. Download Free Guide Now!
Remy Porter