mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
fox to ITS#5070 fix: error out if serialNumber requires size > sizeof(long long) (detected by Coverity)
This commit is contained in:
parent
9c4d147747
commit
3771d2ed49
@ -3414,8 +3414,17 @@ certificateExactNormalize(
|
||||
}
|
||||
|
||||
seriallen = snprintf( serialbuf, sizeof(serialbuf), "%llu", sn );
|
||||
|
||||
} else {
|
||||
/* do not accept serialNumber that requires
|
||||
* more than long long */
|
||||
rc = LDAP_INVALID_SYNTAX;
|
||||
goto done;
|
||||
}
|
||||
|
||||
#else
|
||||
/* do not accept serialNumber that requires
|
||||
* more than long */
|
||||
rc = LDAP_INVALID_SYNTAX;
|
||||
goto done;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user