Skip to content

add an issue for udp connection sendto fuction #1406

@DockTree

Description

@DockTree

Is your feature request related to a problem? Please describe.
the problem is when programs use connection function before sendto function while socktype is udp, qiling can not solve the parameter because in this condition, sendto will not have sockaddr parameter. just like the image below.
image

although, most of time we would not use connection while using udp socket. It do have some programs use it.

Describe the solution you'd like
the solution is simple, add the code in /usr/games/qilingenv/lib/python3.10/site-packages/qiling/os/posix/syscall/socket.py line 852

if addr == 0:
return ql_syscall_send(ql, sockfd, buf, length, flags)

the reason is after connection function, sendto function would not have sockaddr parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions