mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8074817: Resolve disabled warnings for libverify
Reviewed-by: erikj, alanb
This commit is contained in:
parent
164fcbbec9
commit
5c0f32e4b7
3 changed files with 18 additions and 8 deletions
|
@ -23,6 +23,8 @@
|
|||
* questions.
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <limits.h>
|
||||
#include <setjmp.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -232,7 +234,9 @@ skip_over_field_signature(char *name, jboolean void_okay,
|
|||
JNIEXPORT jboolean
|
||||
VerifyClassname(char *name, jboolean allowArrayClass)
|
||||
{
|
||||
unsigned int length = strlen(name);
|
||||
size_t s = strlen(name);
|
||||
assert(s <= UINT_MAX);
|
||||
unsigned int length = (unsigned int)s;
|
||||
char *p;
|
||||
|
||||
if (length > 0 && name[0] == JVM_SIGNATURE_ARRAY) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue