Compilation error: stray ‘\302’ in program etc

后端 未结 13 2171
眼角桃花
眼角桃花 2020-12-01 14:03

I am having problem compiling the followed exploit code:

http://downloads.securityfocus.com/vulnerabilities/exploits/59846-1.c

I am using: \"gcc file.c\" and

13条回答
  •  悲&欢浪女
    2020-12-01 14:28

    I got the same with a character that visibly appeared as an asterisk, but was a UTF-8 sequence instead.

    Encoder * st;
    

    When compiled returned:

    g.c:2:1: error: stray ‘\342’ in program
    g.c:2:1: error: stray ‘\210’ in program
    g.c:2:1: error: stray ‘\227’ in program
    

    342 210 227 turns out to be UTF-8 for ASTERISK OPERATOR.

    Deleting the '*' and typing it again fixed the problem.

提交回复
热议问题