reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 5ec230addfc7ba95aa8cbb863df704e8e93240ec
parent 2919309037e348343f013b03a9e0dfa9b8433fdb
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Thu, 11 Feb 2016 19:09:22 -0800

don't crash when parsing out of range times on windows

Diffstat:
Msrc/version.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/version.cpp b/src/version.cpp @@ -114,7 +114,7 @@ void Version::setTime(const char *iso8601) unsigned int year, month, day; size_t n = sscanf(iso8601, "%u-%u-%u", &year, &month, &day); - if(n < 3) + if(n < 3 || year < 1900 || month < 1 || month > 12 || day < 1 || day > 31) return; m_time = {};