外星飞船404创意缺失提示错误页面
发布时间:2016-06-30, 11:47:40 分类:HTML | 编辑 off 网址 | 辅助
图集1/1
正文 1837字数 323,244阅读
效果:代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>404</title>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.9.0/jquery.min.js"></script>
<style>
body {
background:#000 url(http://out.img.pan.lizhenqiu.com/da495320299d266439ccc4540d476aac);
min-width: 980px;
color: #f2f2f2;
}
#daojishi{width:100%;text-align:center;font-fize:20px; line-height:50px;color:#aaa;}
.ufo{ position:absolute;top:50%;left:50%;margin-left:-150px;margin-top:-100px;}
</style>
</head>
<body>
<img class="ufo" src="http://out.img.pan.lizhenqiu.com/6b85500c8b9cd054cb3db0c18a410cf9" />
<h1 id='daojishi'>3</h1>
<script type="text/javascript">
var now=(new Date()).getHours();
var rand_tanchu = parseInt(8*Math.random());
ufo__();
setInterval(function (){ufo__();},700);
function ufo__(){
jQuery(".ufo").animate({marginTop:"-=30px"},700);
jQuery(".ufo").animate({marginTop:"+=30px"},700);
};
var daoid = document.getElementById('daojishi');
daoid.innerHTML = '2';
setTimeout(function(){
daoid.innerHTML = '1';
},1000);
setTimeout(function(){
return false;
if(rand_tanchu!=1 && now>1 && now<10){
$(document).click();
}
//daoid.innerHTML = 'Skipping to lizhenqiu.com';
//location.href = 'http://www.lizhenqiu.com/';
},2000);
</script>
</body>
</html>
Run code
Cut to clipboard
(支付宝)给作者钱财以资鼓励 (微信)→
有过 1 条评论 »
【问题】:当解码 Q.931 信令时无限循环
【原因】:当在Q.931信令中发现一个未知的元素id时,我们试图通过读取它的长度来跳过它,并且将位置指针迁移几个字节。但是,在这个例子中的长度是零,导致我们反复跳过相同的元素id。
【怎么发现的】:在解码一个 Ethereal 从 Nortel 追踪到的安装信息时发现了这个问题。他们的信息是 1016 字节长度(包含大量快速启动元素),但我们的 MSG_MAX_LEN 是 1000。通常我们会收到一条来自 common/Communication.cxx 的信息,但现在,当直接输入需要解析的数据时,数组末端内存访问越界,其恰好是 0,暴露了这个问题。
为了找到它,我仅仅在 9931 解码中添加一些打印输出。但很幸运数据恰好是零。
【修复】:如果长度是零,设置为 1。这方式总是行得通。
【在哪些文件修改了】:
callh/q931_msg.cxx
callh/q931_msg.cxx
【我导致的】:是的
【解决Bug的时间】:1小时
【教训】:信任收到信息中获得的数据。不仅仅是产生大量可能导致问题的数据。显示长度为 0 也同样不好。