Integrated: 8325680: Uninitialised memory in deleteGSSCB of GSSLibStub.c:179

2024-02-27 Thread Weijun Wang
On Mon, 26 Feb 2024 22:33:03 GMT, Weijun Wang wrote: > Add a `memset` after memory is successfully allocated. > > No regression test, hard to write without a KDC. This pull request has now been integrated. Changeset: 419191c6 Author:Weijun Wang URL: https://git.openjdk.org/jdk/comm

Re: RFR: 8325680: Uninitialised memory in deleteGSSCB of GSSLibStub.c:179 [v4]

2024-02-27 Thread Weijun Wang
> Add a `memset` after memory is successfully allocated. > > No regression test, hard to write without a KDC. Weijun Wang has updated the pull request incrementally with one additional commit since the last revision: add back 2 lines - Changes: - all: https://git.openjdk.org/j

Re: RFR: 8325680: Uninitialised memory in deleteGSSCB of GSSLibStub.c:179 [v3]

2024-02-27 Thread Rajan Halade
On Tue, 27 Feb 2024 21:09:04 GMT, Weijun Wang wrote: >> Add a `memset` after memory is successfully allocated. >> >> No regression test, hard to write without a KDC. > > Weijun Wang has updated the pull request incrementally with one additional > commit since the last revision: > > no need t

Re: RFR: 8325680: Uninitialised memory in deleteGSSCB of GSSLibStub.c:179 [v2]

2024-02-27 Thread Weijun Wang
On Tue, 27 Feb 2024 19:17:37 GMT, Rajan Halade wrote: >> Weijun Wang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> use calloc > > src/java.security.jgss/share/native/libj2gss/GSSLibStub.c line 199: > >> 197: } >> 198: >> 199: cb

Re: RFR: 8325680: Uninitialised memory in deleteGSSCB of GSSLibStub.c:179 [v3]

2024-02-27 Thread Weijun Wang
> Add a `memset` after memory is successfully allocated. > > No regression test, hard to write without a KDC. Weijun Wang has updated the pull request incrementally with one additional commit since the last revision: no need to zero again for some fields - Changes: - all: http

Re: RFR: 8325680: Uninitialised memory in deleteGSSCB of GSSLibStub.c:179 [v2]

2024-02-27 Thread Rajan Halade
On Tue, 27 Feb 2024 17:08:54 GMT, Weijun Wang wrote: >> Add a `memset` after memory is successfully allocated. >> >> No regression test, hard to write without a KDC. > > Weijun Wang has updated the pull request incrementally with one additional > commit since the last revision: > > use callo

Re: RFR: 8325680: Uninitialised memory in deleteGSSCB of GSSLibStub.c:179 [v2]

2024-02-27 Thread Daniel Jeliński
On Tue, 27 Feb 2024 17:08:54 GMT, Weijun Wang wrote: >> Add a `memset` after memory is successfully allocated. >> >> No regression test, hard to write without a KDC. > > Weijun Wang has updated the pull request incrementally with one additional > commit since the last revision: > > use callo

Re: RFR: 8325680: Uninitialised memory in deleteGSSCB of GSSLibStub.c:179 [v2]

2024-02-27 Thread Mark Powers
On Tue, 27 Feb 2024 17:08:54 GMT, Weijun Wang wrote: >> Add a `memset` after memory is successfully allocated. >> >> No regression test, hard to write without a KDC. > > Weijun Wang has updated the pull request incrementally with one additional > commit since the last revision: > > use callo

Re: RFR: 8325680: Uninitialised memory in deleteGSSCB of GSSLibStub.c:179 [v2]

2024-02-27 Thread Valerie Peng
On Tue, 27 Feb 2024 17:08:54 GMT, Weijun Wang wrote: >> Add a `memset` after memory is successfully allocated. >> >> No regression test, hard to write without a KDC. > > Weijun Wang has updated the pull request incrementally with one additional > commit since the last revision: > > use callo

Re: RFR: 8325680: Uninitialised memory in deleteGSSCB of GSSLibStub.c:179 [v2]

2024-02-27 Thread Weijun Wang
> Add a `memset` after memory is successfully allocated. > > No regression test, hard to write without a KDC. Weijun Wang has updated the pull request incrementally with one additional commit since the last revision: use calloc - Changes: - all: https://git.openjdk.org/jdk/pul

Re: RFR: 8325680: Uninitialised memory in deleteGSSCB of GSSLibStub.c:179

2024-02-27 Thread Weijun Wang
On Tue, 27 Feb 2024 16:36:42 GMT, Mark Powers wrote: > Why do you have to set memory to zero? If you really need to, `calloc()` sets > memory to zero. Inside `newGSSCB`, if there is anything wrong before `cb->application_data` is initialized, `deleteGSSCB` will be called and it has if (cb->

Re: RFR: 8325680: Uninitialised memory in deleteGSSCB of GSSLibStub.c:179

2024-02-27 Thread Mark Powers
On Mon, 26 Feb 2024 22:33:03 GMT, Weijun Wang wrote: > Add a `memset` after memory is successfully allocated. > > No regression test, hard to write without a KDC. Why do you have to set memory to zero? If you really need to, `calloc()` sets memory to zero. - PR Comment: https://gi

Re: RFR: 8326687: Inconsistent use of "ZIP", "Zip" and "zip" in java.util.zip/jar zipfs javadoc [v2]

2024-02-27 Thread Lance Andersen
On Tue, 27 Feb 2024 15:08:11 GMT, Eirik Bjørsnøs wrote: >> Lance Andersen has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Address initial feedback for JDK-8326687 > > src/java.base/share/classes/java/util/zip/ZipOutputStream.java line 54

Re: RFR: 8326687: Inconsistent use of "ZIP", "Zip" and "zip" in java.util.zip/jar zipfs javadoc [v2]

2024-02-27 Thread Lance Andersen
> This PR updates the javadoc and comments within java.util.zip/jar and zipfs > module summary so that it is consistent with the use of "ZIP". > > In addition, open/src/java.base/share/classes/java/util/zip/package-info.java > has been updated to point to the higher level location of the PKWARE

Re: RFR: 8326687: Inconsistent use of "ZIP", "Zip" and "zip" in java.util.zip/jar zipfs javadoc [v2]

2024-02-27 Thread Lance Andersen
On Tue, 27 Feb 2024 16:12:03 GMT, Lance Andersen wrote: >> This PR updates the javadoc and comments within java.util.zip/jar and zipfs >> module summary so that it is consistent with the use of "ZIP". >> >> In addition, >> open/src/java.base/share/classes/java/util/zip/package-info.java has be

Re: RFR: 8326687: Inconsistent use of "ZIP", "Zip" and "zip" in java.util.zip/jar zipfs javadoc

2024-02-27 Thread Eirik Bjørsnøs
On Mon, 26 Feb 2024 19:55:47 GMT, Lance Andersen wrote: > This PR updates the javadoc and comments within java.util.zip/jar and zipfs > module summary so that it is consistent with the use of "ZIP". > > In addition, open/src/java.base/share/classes/java/util/zip/package-info.java > has been up

Re: RFR: 8326687: Inconsistent use of "ZIP", "Zip" and "zip" in java.util.zip/jar zipfs javadoc

2024-02-27 Thread Eirik Bjørsnøs
On Mon, 26 Feb 2024 19:55:47 GMT, Lance Andersen wrote: > This PR updates the javadoc and comments within java.util.zip/jar and zipfs > module summary so that it is consistent with the use of "ZIP". > > In addition, open/src/java.base/share/classes/java/util/zip/package-info.java > has been up

RFR: 8325680: Uninitialised memory in deleteGSSCB of GSSLibStub.c:179

2024-02-27 Thread Weijun Wang
Add a `memset` after memory is successfully allocated. No regression test, hard to write without a KDC. - Commit messages: - the fix Changes: https://git.openjdk.org/jdk/pull/18015/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18015&range=00 Issue: https://bugs.openjdk.

Re: RFR: 8319673: Few security tests ignore VM flags [v5]

2024-02-27 Thread Matthew Donovan
On Mon, 26 Feb 2024 18:04:18 GMT, Hai-May Chao wrote: > Nit: Copyright year of IterationCount.java would need to be changed. That is a Red Hat copyright; should I add an Oracle copyright? The file isn't significantly changed. - PR Comment: https://git.openjdk.org/jdk/pull/17877#is

Re: RFR: 8326687: Inconsistent use of "ZIP", "Zip" and "zip" in java.util.zip/jar zipfs javadoc

2024-02-27 Thread Daniel Fuchs
On Mon, 26 Feb 2024 19:55:47 GMT, Lance Andersen wrote: > This PR updates the javadoc and comments within java.util.zip/jar and zipfs > module summary so that it is consistent with the use of "ZIP". > > In addition, open/src/java.base/share/classes/java/util/zip/package-info.java > has been up