Przeglądaj źródła

Enable string literal section for app-manager (#2904)

Xu Jun 2 lat temu
rodzic
commit
c898d3a364
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      core/app-mgr/app-manager/module_wasm_app.c

+ 4 - 0
core/app-mgr/app-manager/module_wasm_app.c

@@ -1230,8 +1230,12 @@ wasm_app_module_on_install_request_byte_arrive(uint8 ch, int request_total_size,
         uint8 section_type = ch;
         uint8 section_type = ch;
 #if WASM_ENABLE_BULK_MEMORY == 0
 #if WASM_ENABLE_BULK_MEMORY == 0
         uint8 section_type_max = SECTION_TYPE_DATA;
         uint8 section_type_max = SECTION_TYPE_DATA;
+#else
+#if WASM_ENABLE_STRINGREF != 0
+        uint8 section_type_max = SECTION_TYPE_STRINGREF;
 #else
 #else
         uint8 section_type_max = SECTION_TYPE_DATACOUNT;
         uint8 section_type_max = SECTION_TYPE_DATACOUNT;
+#endif /* end of WASM_ENABLE_STRINGREF != 0 */
 #endif
 #endif
         if (section_type <= section_type_max) {
         if (section_type <= section_type_max) {
             wasm_section_t *new_section;
             wasm_section_t *new_section;