You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Mike Jumper (Jira)" <ji...@apache.org> on 2025/05/14 22:04:00 UTC

[jira] [Created] (GUACAMOLE-2070) __guac_wol_send_packet() uses incorrect structure for IPv6 address

Mike Jumper created GUACAMOLE-2070:
--------------------------------------

             Summary: __guac_wol_send_packet() uses incorrect structure for IPv6 address
                 Key: GUACAMOLE-2070
                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-2070
             Project: Guacamole
          Issue Type: Bug
          Components: libguac
    Affects Versions: 1.2.0
            Reporter: Mike Jumper


The {{__guac_wol_send_packet()}} implementation currently uses a {{sockaddr_in}} for both IPv4 and IPv6, but this is incorrect. That structure is valid only for use with IPv4. For IPv6, we should instead use {{sockaddr_in6}} (or a union that combines the two).

This can potentially result in a segfault due to the size difference or, if using a recent enough GCC and libc, build failures.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)