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
diff --git a/test/rde_handler_test.cpp b/test/rde_handler_test.cpp
index 7977d69..efc3d31 100644
--- a/test/rde_handler_test.cpp
+++ b/test/rde_handler_test.cpp
@@ -578,9 +578,9 @@
  */
 constexpr std::array<uint8_t, 38> mRcvDummyAnnotation{
     {0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00,
-     0x0,  0x0,  0xc,  0x0,  0x0,  0xf0, 0xf0, 0xf1, 0x17, 0x1,
+     0x0,  0x0,  0xc,  0x0,  0x0,  0xf0, 0xf0, 0xf1, 0x18, 0x00,
      0x0,  0x0,  0x0,  0x0,  0x0,  0x16, 0x0,  0x5,  0x0,  0xc,
-     0x84, 0x0,  0x14, 0x0,  0x30, 0xa8, 0xc3, 0x3c}};
+     0x84, 0x0,  0x14, 0x0,  0xe2, 0x14, 0xd2, 0x0b}};
 
 constexpr std::array<uint8_t, 38> mRcvDummyInvalidChecksum{
     {0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00,