Bugzilla – Attachment 789 Details for
Bug 775
patches for Cray systems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cray deattack patch
openssh-cray-deattack.patch (text/plain), 926 bytes, created by
Darren Tucker
on 2005-01-27 18:01:04 AEDT
(
hide
)
Description:
cray deattack patch
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2005-01-27 18:01:04 AEDT
Size:
926 bytes
patch
obsolete
>Index: deattack.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/deattack.c,v >retrieving revision 1.16 >diff -u -p -r1.16 deattack.c >--- deattack.c 22 Sep 2003 11:04:23 -0000 1.16 >+++ deattack.c 27 Jan 2005 06:55:54 -0000 >@@ -33,7 +33,7 @@ RCSID("$OpenBSD: deattack.c,v 1.19 2003/ > > /* Hashing constants */ > #define HASH_MINSIZE (8 * 1024) >-#define HASH_ENTRYSIZE (2) >+#define HASH_ENTRYSIZE (sizeof(u_int16_t)) > #define HASH_FACTOR(x) ((x)*3/2) > #define HASH_UNUSEDCHAR (0xff) > #define HASH_UNUSED (0xffff) >@@ -128,7 +128,14 @@ detect_attack(u_char *buf, u_int32_t len > } > return (DEATTACK_OK); > } >+ >+#ifndef _UNICOS > memset(h, HASH_UNUSEDCHAR, n * HASH_ENTRYSIZE); >+#else >+ /* we can't use memset because the entries aren't 2 bytes */ >+ for (i= 0; i < n; i++) >+ h[i] = HASH_UNUSED; >+#endif > > if (IV) > h[HASH(IV) & (n - 1)] = HASH_IV;
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 775
:
514
| 789