diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-06-03 16:24:25 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-06-04 14:57:11 -0500 |
commit | 089295bf2eb1274da2326e5864afc905070a2832 (patch) | |
tree | 1b55fd5a24497acd01705b83f78e8f911dff4871 /src/libs/dutil/WixToolset.DUtil/strutil.cpp | |
parent | 13482e726fd148eaa58eb95e358e13e390d63148 (diff) | |
download | wix-089295bf2eb1274da2326e5864afc905070a2832.tar.gz wix-089295bf2eb1274da2326e5864afc905070a2832.tar.bz2 wix-089295bf2eb1274da2326e5864afc905070a2832.zip |
Enforce schema restrictions for numeric and image thmutil attributes.
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/strutil.cpp')
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/strutil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/strutil.cpp b/src/libs/dutil/WixToolset.DUtil/strutil.cpp index 550d6169..3cb7ef6a 100644 --- a/src/libs/dutil/WixToolset.DUtil/strutil.cpp +++ b/src/libs/dutil/WixToolset.DUtil/strutil.cpp | |||
@@ -2580,7 +2580,7 @@ extern "C" HRESULT DAPI StrStringToUInt64( | |||
2580 | while (i < cchIn) | 2580 | while (i < cchIn) |
2581 | { | 2581 | { |
2582 | nDigit = wzIn[i] - L'0'; | 2582 | nDigit = wzIn[i] - L'0'; |
2583 | if (9 < nDigit) | 2583 | if (0 > nDigit || 9 < nDigit) |
2584 | { | 2584 | { |
2585 | ExitFunction1(hr = E_INVALIDARG); | 2585 | ExitFunction1(hr = E_INVALIDARG); |
2586 | } | 2586 | } |