commit | da5c8e3b10cc4d12ced79d401cbfa27f68389056 | [log] [tgz] |
---|---|---|
author | Leonard Chan <leonardchan@google.com> | Fri Apr 07 22:21:05 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Apr 07 22:21:05 2023 +0000 |
tree | 8dd2c8f62fead38ae1015f3dc3669a385be0b99d | |
parent | 60b725a1d6e137759d02a054f4ac02af8f85ea06 [diff] | |
parent | 8a2e3422a9cd0a3afc421c7000121574aaa559b5 [diff] |
Merge "[openweave-core] Increase buffer size by 1" into main
diff --git a/src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericConfigurationManagerImpl.ipp b/src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericConfigurationManagerImpl.ipp index 8e56e66..9551759 100644 --- a/src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericConfigurationManagerImpl.ipp +++ b/src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericConfigurationManagerImpl.ipp
@@ -1057,7 +1057,7 @@ { constexpr uint16_t kInputBufSize = 80; static_assert(kInputBufSize > 0 && kInputBufSize % 4 == 0, "kInputBufSize must be a positive multiple of 4"); - char inputBuf[kInputBufSize]; + char inputBuf[kInputBufSize + 1]; constexpr uint16_t kMaxChunkLen = BASE64_MAX_DECODED_LEN(kInputBufSize); // Hash the length of the base-64 value as 4 hex digits.