Skip to content

Failed to setup syzkaller #17

Description

@thealberto

Hi,
when I run python syzscope -i case I got an error because I cannot compile syzkaller. Any idea on how to fix it?

2024-08-02 16:51:43,025 [0] b'In file included from executor/common_linux.h:1463,\n'
2024-08-02 16:51:43,025 [0] b'                 from executor/common.h:394,\n'
2024-08-02 16:51:43,025 [0] b'                 from executor/executor.cc:133:\n'
2024-08-02 16:51:43,025 [0] b'In function \xe2\x80\x98bool lookup_connect_response_in(int, const vusb_connect_descriptors*, const usb_ctrlrequest*, char**, uint32*)\xe2\x80\x99,\n'
2024-08-02 16:51:43,025 [0] b'    inlined from \xe2\x80\x98volatile long int syz_usb_connect_impl(uint64, uint64, const char*, const vusb_connect_descriptors*, lookup_connect_response_t)\xe2\x80\x99 at executor/common_usb.h:965:4:\n'
2024-08-02 16:51:43,025 [0] b'executor/common_usb.h:801:66: error: array subscript \xe2\x80\x98usb_qualifier_descriptor[0]\xe2\x80\x99 is partly outside array bounds of \xe2\x80\x98char [8]\xe2\x80\x99 [-Werror=array-bounds]\n'
2024-08-02 16:51:43,025 [0] b'  801 |                                         qual->bNumConfigurations = index->dev->bNumConfigurations;\n'
2024-08-02 16:51:43,026 [0] b'      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n'
2024-08-02 16:51:43,026 [0] b'executor/common_usb.h: In function \xe2\x80\x98volatile long int syz_usb_connect_impl(uint64, uint64, const char*, const vusb_connect_descriptors*, lookup_connect_response_t)\xe2\x80\x99:\n'
2024-08-02 16:51:43,026 [0] b'executor/common_usb.h:960:23: note: object \xe2\x80\x98response_data\xe2\x80\x99 of size 8\n'
2024-08-02 16:51:43,026 [0] b'  960 |                 char* response_data = NULL;\n'
2024-08-02 16:51:43,026 [0] b'      |                       ^~~~~~~~~~~~~\n'
2024-08-02 16:51:43,026 [0] b'In function \xe2\x80\x98bool lookup_connect_response_in(int, const vusb_connect_descriptors*, const usb_ctrlrequest*, char**, uint32*)\xe2\x80\x99,\n'
2024-08-02 16:51:43,026 [0] b'    inlined from \xe2\x80\x98volatile long int syz_usb_connect_impl(uint64, uint64, const char*, const vusb_connect_descriptors*, lookup_connect_response_t)\xe2\x80\x99 at executor/common_usb.h:965:4:\n'
2024-08-02 16:51:43,026 [0] b'executor/common_usb.h:802:57: error: array subscript \xe2\x80\x98usb_qualifier_descriptor[0]\xe2\x80\x99 is partly outside array bounds of \xe2\x80\x98char [8]\xe2\x80\x99 [-Werror=array-bounds]\n'
2024-08-02 16:51:43,026 [0] b'  802 |                                         qual->bRESERVED = 0;\n'
2024-08-02 16:51:43,026 [0] b'      |                                         ~~~~~~~~~~~~~~~~^~~\n'
2024-08-02 16:51:43,026 [0] b'executor/common_usb.h: In function \xe2\x80\x98volatile long int syz_usb_connect_impl(uint64, uint64, const char*, const vusb_connect_descriptors*, lookup_connect_response_t)\xe2\x80\x99:\n'
2024-08-02 16:51:43,026 [0] b'executor/common_usb.h:960:23: note: object \xe2\x80\x98response_data\xe2\x80\x99 of size 8\n'
2024-08-02 16:51:43,026 [0] b'  960 |                 char* response_data = NULL;\n'
2024-08-02 16:51:43,026 [0] b'      |                       ^~~~~~~~~~~~~\n'
2024-08-02 16:51:43,296 [0] b'cc1plus: all warnings being treated as errors\n'
2024-08-02 16:51:43,299 [0] b'make[1]: *** [Makefile:129: executor] Error 1\n'

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions