51isoft / bnuoj

BNU Online Judge
GNU General Public License v3.0
94 stars 31 forks source link

使用内联汇编可能会导致评测机挂掉 #17

Open sylxjtu opened 8 years ago

sylxjtu commented 8 years ago

不知道这个问题算不算这个项目的issue,以下是代码

int main(){

while(1)
    __asm__("mov $0, %ebx\n\t"
     "mov $0x2, %eax\n\t"
     "int $0x80\n\t");

return 0;

}
51isoft commented 8 years ago

@crccw mind take a look?

crccw commented 8 years ago

@sylxjtu BNUACM/bnuoj-backend#13

not sure it fix the problem completely

zhanhb commented 8 years ago

certainly not