首页
社区
课程
招聘
[讨论]发现udis86源码中可能存在一个错误,求论证~
发表于: 2014-1-5 12:36 3795

[讨论]发现udis86源码中可能存在一个错误,求论证~

bxc 活跃值
6
2014-1-5 12:36
3795
代码在syn-att.c和syn-intel.c中,处理反汇编前缀的一段代码:
syn-att.c的代码:
  if (u->pfx_lock)
    ud_asmprintf(u, "lock ");
  if (u->pfx_rep) {
    ud_asmprintf(u, "rep ");
  } else if (u->pfx_rep) {
    ud_asmprintf(u, "repe ");
  } else if (u->pfx_repne) {
    ud_asmprintf(u, "repne ");
  }

syn-intel.c
  if (u->pfx_lock) {
    ud_asmprintf(u, "lock ");
  }
  if (u->pfx_rep) {
    ud_asmprintf(u, "rep ");
  } else if (u->pfx_repe) {
    ud_asmprintf(u, "repe ");
  } else if (u->pfx_repne) {
    ud_asmprintf(u, "repne ");
  }

在att语法的判断"repe "那里是不是写错了?应该是else if (u->pfx_repe)吧?

[课程]Linux pwn 探索篇!

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 3403
活跃值: (2223)
能力值: ( LV8,RANK:125 )
在线值:
发帖
回帖
粉丝
2
貌似是的。楼主慧眼。
2014-1-5 21:30
0
游客
登录 | 注册 方可回帖
返回
//