Details
-
Bug
-
Resolution: Fixed
-
P3
-
13
-
b29
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8227531 | 14 | Weijun Wang | P3 | Resolved | Fixed | b06 |
JDK-8228307 | 13.0.2 | Weijun Wang | P3 | Resolved | Fixed | b01 |
JDK-8228091 | 13.0.1 | Weijun Wang | P3 | Resolved | Fixed | master |
JDK-8298232 | 11.0.19-oracle | Prasadarao Koppula | P3 | Resolved | Fixed | b01 |
JDK-8257138 | 11.0.10 | Weijun Wang | P3 | Resolved | Fixed | b05 |
JDK-8316634 | openjdk8u402 | Alexey Bakhtin | P3 | Resolved | Fixed | b01 |
JDK-8315799 | openjdk8u392 | Alexey Bakhtin | P3 | Resolved | Fixed | b05 |
JDK-8298435 | 8u371 | Prasadarao Koppula | P3 | Resolved | Fixed | b01 |
Description
Macro bodies should not end in a semi-colon.
If these were public and since these macro bodies are all if
statements, you should wrap them in do { } while (0), but since
they're private we can make sure that all uses are correct.
- gss_import_name() doesn't check that the first two bytes of the
input buffer are the expected token ID when the name-type is
GSS_C_NT_EXPORTED_NAME.
- gss_import_name() doesn't check that the third byte of the input
buffer is 0 when the name-type is GSS_C_NT_EXPORTED_NAME.
- gss_compare_name(), this code will not distinguish a name of the
form 'foo@' from 'foo\@'
434 if (l1 < l2 && n2[l1] != L'@'
435 || l2 < l1 && n1[l2] != L'@') {
436 return GSS_S_COMPLETE; // different
437 }
Honestly, this is not the most serious problem because nothing
really should be using gss_compare_name(), but you do use it... and
anyways, it's wrong.
Perhaps the gss_name_struct struct should have a length of realm or
length-of-not-realm-part field to make this check easier.
- gss_compare_name(), do not use NORM_IGNORECASE
- gss_canonicalize_name() should check that mech_type is Kerberos
Attachments
Issue Links
- backported by
-
JDK-8227531 Newly added sspi.cpp in JDK-6722928 still contains some small errors
- Resolved
-
JDK-8228091 Newly added sspi.cpp in JDK-6722928 still contains some small errors
- Resolved
-
JDK-8228307 Newly added sspi.cpp in JDK-6722928 still contains some small errors
- Resolved
-
JDK-8257138 Newly added sspi.cpp in JDK-6722928 still contains some small errors
- Resolved
-
JDK-8298232 Newly added sspi.cpp in JDK-6722928 still contains some small errors
- Resolved
-
JDK-8298435 Newly added sspi.cpp in JDK-6722928 still contains some small errors
- Resolved
-
JDK-8315799 Newly added sspi.cpp in JDK-6722928 still contains some small errors
- Resolved
-
JDK-8316634 Newly added sspi.cpp in JDK-6722928 still contains some small errors
- Resolved
- relates to
-
JDK-6722928 Provide a default native GSS-API library on Windows
- Resolved