Related: tdf#101057 allow java update version number > 99
Change-Id: Icc37cf248fbf35f108eb5bbb25c36fbd54a9fe85
This commit is contained in:
@@ -135,9 +135,9 @@ bool SunVersion::init(const char *szVersion)
|
|||||||
{
|
{
|
||||||
if ( ! isdigit(*pCur))
|
if ( ! isdigit(*pCur))
|
||||||
{
|
{
|
||||||
//1.4.1_01-, 1.4.1_01a, the numerical part may only be 2 chars.
|
//1.8.0_102-, 1.8.0_01a,
|
||||||
int len = pCur - pLast;
|
size_t len = pCur - pLast;
|
||||||
if (len > 2)
|
if (len > sizeof(buf) - 1)
|
||||||
return false;
|
return false;
|
||||||
//we've got the update: 01, 02 etc
|
//we've got the update: 01, 02 etc
|
||||||
strncpy(buf, pLast, len);
|
strncpy(buf, pLast, len);
|
||||||
|
Reference in New Issue
Block a user