|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?FreeOZ用户注册
x
by Fenng
作者:Fenng 发布在 dbanotes.net.
这是我接触 Oracle 这么多年来最有趣的一件事儿。
刚才在邮件列表中看到一位叫做 Dennis Yurichev 的安全研究人员提及在 ORACLE.EXE 这个文件代码中包含有 Radiohead 乐队 Creep 这首歌的歌词,立刻验证了一下,果然:
$ strings oracle.exe | grep radiohead
I'm a creep, I'm a winner, what the hell am I doing here.
I don't belong here - radiohead没错,真的是 Creep 这首歌的歌词。Radiohead 颇受 Geek 程序员的喜爱。看得出加入这段代码的程序员对这份工作并不是很满意..."what the hell am I doing here"...
另外,原歌词是 I'm a weirdo(古怪的人),而不是 winner ,估计是随手写错了。
这位 Dennis Yurichev 还给出了伪代码:
#define STRING "I'm a creep, I'm a winner, what the hell am I doinghere.I don't belong here - radiohead"
kfasSelfTest_update(){ kfasOpen (...);
somestruct.somevalue=STRING;
kfasUpdate (somestruct);
kfasClose (...); newstruct=kfasOpen (...); if (strncmp (newstruct.somevalue, STRING, ...)!=0) { // raise error 99999? kserec1(99999, 1, ...); kserec2(99999, 1, ..., STRING, 1, ...); return 0; };
kfasClose (...);
return 1;
};据说是 10.2.0.1 之后才有,可能和 Oracle ASM 特性有关,不知道这是 Oracle 哪一位程序员的杰作...
--EOF--
我最喜欢的 Radiohead 作品还是 Paranoid Android ...
|
|