Initialize BEJ dictionary sizes
Tested:
Tested with unit tests
Change-Id: I2e8461a0a41573fe1b79f24a32aba3da17a8afa5
Signed-off-by: Kasun Athukorala <kasunath@google.com>
diff --git a/src/rde/rde_handler.cpp b/src/rde/rde_handler.cpp
index 74f6204..2bd377a 100644
--- a/src/rde/rde_handler.cpp
+++ b/src/rde/rde_handler.cpp
@@ -115,9 +115,13 @@
BejDictionaries dictionaries = {
.schemaDictionary = (*schemaDictOrErr).data(),
+ .schemaDictionarySize = (uint32_t)(*schemaDictOrErr).size_bytes(),
.annotationDictionary = (*annotationDictOrErr).data(),
+ .annotationDictionarySize =
+ (uint32_t)(*annotationDictOrErr).size_bytes(),
// We do not use the error dictionary.
.errorDictionary = nullptr,
+ .errorDictionarySize = 0,
};
// Soon after header, we have bejLocator field. Then we have the encoded