Oracle 代码中的 Radiohead 歌词

这是我接触 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 doing
here.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 …

此文作者:, 位于 Geek 分类 标签: , on .
转载须以超链接形式标明文章原始出处和作者信息及版权声明.

9 thoughts on “Oracle 代码中的 Radiohead 歌词

  1. yanleech

    weirdo 手误为 winner 有点不可置信吧,在歌中这个词的读音还是很清晰的,我偏向认为是故意为之……

    Reply
  2. 丁宇

    嗯,看了一下我的iTunes曲库,Radiohead的评级如下:
    Paranoid Android和Creep并列获得四星
    Exit Music (For A Film)、Karma Police、No Suprises、Backdrifts (Honeymoon Is Over)和A Wolf At The Door (It Girl, Rag Doll)并列三星
    还有10首歌获得两星或一星
    顺便说一句,我整个曲库中只有Michael Jackson的Man in the mirror获得了满分五星,而绝大部分歌曲没有获得一星。

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *