Gedare Bloom started a new discussion on rtemslwip/common/network_compat.c: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/28#note_130582 > + return -1; > + } > + if (size == 0) { > + errno = ENAMETOOLONG; > + return -1; > + } > + if (copy_size > size) { > + /* Ensure space for the null */ > + copy_size = size - 1; > + } > + > + memcpy(name, hostname, copy_size); > + /* Enforce null termination of output */ > + name[copy_size] = '\0'; > + > + if (size < hostname_len) { I think you also need the `<=` here -- View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/28#note_130582 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
