Bugzilla – Attachment 3603 Details for
Bug 3464
openbsd-compat - sys_tun_infilter - off-by-one
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for the issue
openssh.patch (text/plain), 513 bytes, created by
Mateusz Kocielski
on 2022-07-14 17:24:54 AEST
(
hide
)
Description:
patch for the issue
Filename:
MIME Type:
Creator:
Mateusz Kocielski
Created:
2022-07-14 17:24:54 AEST
Size:
513 bytes
patch
obsolete
>diff --git a/openbsd-compat/port-net.c b/openbsd-compat/port-net.c >index 198e73f0..4a6d2274 100644 >--- a/openbsd-compat/port-net.c >+++ b/openbsd-compat/port-net.c >@@ -325,7 +325,7 @@ sys_tun_infilter(struct ssh *ssh, struct Channel *c, char *buf, int _len) > len = _len; > > #if defined(SSH_TUN_PREPEND_AF) >- if (len <= sizeof(iph) || len > sizeof(rbuf) - 4) >+ if (len < sizeof(iph) || len > sizeof(rbuf) - 4) > return -1; > /* Determine address family from packet IP header. */ > memcpy(&iph, buf, sizeof(iph));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3464
: 3603