RFR: 8275846: read_base_archive_name() could read past the end of buffer [v2]

Ioi Lam iklam at openjdk.java.net
Sat Nov 6 07:20:14 UTC 2021


On Sat, 6 Nov 2021 01:24:21 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

>> Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Added new test case where base archive does not exist
>
> test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/ArchiveConsistency.java line 156:
> 
>> 154:                appJar, mainClass, 1,
>> 155:                new String[] {"Base archive name is damaged",
>> 156:                              "Header checksum verification failed"});
> 
> It would be good if there's a testcase to cover the "does not exist" case.
> It's fine if it will be covered by PR #5997.

I added a new test case where the base archive doesn't exist.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6285


More information about the hotspot-runtime-dev mailing list