Skip to content

[Issue] gcc 14.2.1 warning  #277

Description

@LaurentThomas

Hi,

gcc 14.2.1 refuse to compile:

  • you made -Werror
  • src/u_websocket.c line 2117 memcpy() makes a warning

The warning is quite bad, it says you test: if (data_len_in && data_len_in <= (SIZE_MAX-4))
but memcpy() max size is SSIZE_MAX (that is smaller)

possible fix:
add #include <limits.h> and change the if to SSIZE_MAX

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions