mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-19 11:23:38 +08:00
Fix bound check
This commit is contained in:
@@ -117,6 +117,7 @@ set(src
|
||||
src/pem.c
|
||||
src/x509_alg.c
|
||||
src/x509_cer.c
|
||||
src/x509_vfy.c
|
||||
src/x509_ext.c
|
||||
src/x509_req.c
|
||||
src/x509_crl.c
|
||||
@@ -818,7 +819,7 @@ endif()
|
||||
#
|
||||
set(CPACK_PACKAGE_NAME "GmSSL")
|
||||
set(CPACK_PACKAGE_VENDOR "GmSSL develop team")
|
||||
set(CPACK_PACKAGE_VERSION "3.2.0-dev.1074")
|
||||
set(CPACK_PACKAGE_VERSION "3.2.0-dev.1075")
|
||||
set(CPACK_PACKAGE_DESCRIPTION_FILE ${PROJECT_SOURCE_DIR}/README.md)
|
||||
set(CPACK_NSIS_MODIFY_PATH ON)
|
||||
include(CPack)
|
||||
|
||||
@@ -18,7 +18,7 @@ extern "C" {
|
||||
|
||||
|
||||
#define GMSSL_VERSION_NUM 30200
|
||||
#define GMSSL_VERSION_STR "GmSSL 3.2.0-dev.1074"
|
||||
#define GMSSL_VERSION_STR "GmSSL 3.2.0-dev.1075"
|
||||
|
||||
int gmssl_version_num(void);
|
||||
const char *gmssl_version_str(void);
|
||||
|
||||
@@ -383,7 +383,7 @@ int tls13_client_main(int argc, char *argv[])
|
||||
} else if (!strcmp(*argv, "-psk_dhe_ke")) {
|
||||
psk_dhe_ke = 1;
|
||||
} else if (!strcmp(*argv, "-psk_identity")) {
|
||||
if (psk_identities_cnt > sizeof(psk_identities)/sizeof(psk_identities[0])) {
|
||||
if (psk_identities_cnt >= sizeof(psk_identities)/sizeof(psk_identities[0])) {
|
||||
fprintf(stderr, "%s: too many -psk_identity options\n", prog);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user