免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12345
最近访问板块 发新帖
楼主: iLRainyday
打印 上一主题 下一主题

这个最基础的注入为什么会出错啊? [复制链接]

论坛徽章:
2
青铜圣斗士
日期:2015-11-26 06:15:59数据库技术版块每日发帖之星
日期:2016-07-24 06:20:00
41 [报告]
发表于 2009-12-15 20:51 |只看该作者

回复 #40 iLRainyday 的帖子

我也不知道在哪下到的电子版 ……  可能到处收刮的

function pointers and data pointers may have significantly differnet representations,including different sizes.

嗯, 这就和我以前理解的相同了。

in standard C,void * can be used as a generic object pointer,but there is no generic funciton pointer.

这里好像不对。


c89 6.3.4 Cast operators p45
...
A pointer to a function of one type may be converted to a pointer to a function of another
type and back again; the result shall compare equal to the original pointer. If a converted
pointer is used to call a function that has a type that is not compatible with the type of the
called function. the behavior is undefined.
...

也就是说, 随便哪一个pointer to function都可以作为generic function pointer,只要在使用前转型为原有的类型就没有问题。

论坛徽章:
2
青铜圣斗士
日期:2015-11-26 06:15:59数据库技术版块每日发帖之星
日期:2016-07-24 06:20:00
42 [报告]
发表于 2009-12-15 21:01 |只看该作者

回复 #40 iLRainyday 的帖子

http://www.itpub.net/thread-1156870-1-5.html


刚才搜我硬盘时,发现还有另外2本……

F8C35AF1A56F14D01CAF00FD7FDCE084|C A Reference Manual, Fifth Edition.pdf
http://www.itpub.net/thread-453450-1-1.html
好像是SGI的

D057BC0083952B183BCB6CA8572519AB|C+Reference+Manual.pdf
http://d.download.csdn.net/down/237916/tzp_1210
by Dennis M. Ritchie


名字都很像……  但好像3本都没有什么联系……
好像也确实是Steele那本最出名。

论坛徽章:
0
43 [报告]
发表于 2010-01-17 19:14 |只看该作者
致富之路。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP