Fix MAXERAS crash (split array overflow)

This commit is contained in:
jl777
2019-07-12 16:39:33 -11:00
parent b018d0dda0
commit 152c86ce84
6 changed files with 14 additions and 14 deletions

View File

@@ -185,7 +185,7 @@ inline bool IsSwitchChar(char c)
* else if the string has fewer than _MAX_ERAS entries, then the last
* entry fills remaining entries
*/
void Split(const std::string& strVal, uint64_t *outVals, uint64_t nDefault);
void Split(const std::string& strVal, int32_t outsize, uint64_t *outVals, uint64_t nDefault);
/**
* Return string argument or default value