package/nmap: fix ncat on Unix socket
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 package/nmap: fix ncat on Unix socket
[For some reason, this email did not appear in buildroot list archive; resending]
Starting with nmap 7.91, ncat segfaults on an attempt to use it for a Unix-domain socket (ncat -U path). The fix has been committed to nmap in r38121.
--- ?package/nmap/0002-ncat-unix-socket.patch | 28 ++++++++++++++++++++++++
?1 file changed, 28 insertions(+)
?create mode 100644 package/nmap/0002-ncat-unix-socket.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-package-nmap-fix-ncat-on-Unix-socket.patch
Type: text/x-patch
Size: 1829 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20210720/d8d3d14a/attachment.bin>
PATCH 1/1 package/nmap: fix ncat on Unix socket
Starting with nmap 7.91, ncat segfaults on an attempt to use it for a Unix-domain socket (ncat -U path). The fix has been committed to nmap in r38121.
--- package/nmap/0002-ncat-unix-socket.patch | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/nmap/0002-ncat-unix-socket.patch
package/nmap/0002-ncat-unix-socket.patch new file +28 -0
@@ -0,0 +1,28 @@ +ChangeLog: + +o [Ncat][GH#2154] Ncat no longer crashes when used with Unix domain sockets. + +Backported from: r38121 + +Index: ncat/ncat_main.c +=================================================================== +--- a/ncat/ncat_main.c (revision 38120) ++++ b/ncat/ncat_main.c (revision 38121) +@@ -846,7 +846,7 @@ + targetaddrs->addr.un.sun_family = AF_UNIX; + strncpy(targetaddrs->addr.un.sun_path, argv[optind], sizeof(targetaddrs->addr.un.sun_path)); + targetaddrs->addrlen = SUN_LEN(&targetaddrs->addr.un); +- o.target = argv[optind]; ++ o.sslservername = o.target = argv[optind]; + optind++; + } else + #endif +@@ -865,7 +865,7 @@ + targetaddrs->addr.vm.svm_cid = long_cid; + + targetaddrs->addrlen = sizeof(targetaddrs->addr.vm); +- o.target = argv[optind]; ++ o.sslservername = o.target = argv[optind]; + optind++; + } + } else
Signature · 6 lines
2.27.0 _______________________________________________ buildroot mailing list [email protected] http://lists.busybox.net/mailman/listinfo/buildroot
Thomas Petazzoni
AppliedQuoted 9 lines · On Tue, 27 Jul 2021 19:15:34 -0700 Alexey Neyman <[email protected]> wrote:
Starting with nmap 7.91, ncat segfaults on an attempt to use it for a Unix-domain socket (
ncat -U path). The fix has been committed to nmap in r38121.Signed-off-by Alexey Neyman <[email protected]>--- package/nmap/0002-ncat-unix-socket.patch | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/nmap/0002-ncat-unix-socket.patch
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] http://lists.busybox.net/mailman/listinfo/buildroot
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Alexey" == Alexey Neyman <[email protected]> writes:
Starting with nmap 7.91, ncat segfaults on an attempt to use it for a Unix-domain socket (
ncat -U path). The fix has been committed to nmap in r38121.Signed-off-by Alexey Neyman <[email protected]>
Committed to 2021.02.x and 2021.05.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] http://lists.busybox.net/mailman/listinfo/buildroot