Ver Fonte

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

Xu Jun há 2 anos atrás
pai
commit
c898d3a364
1 ficheiros alterados com 4 adições e 0 exclusões
  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;
 #if WASM_ENABLE_BULK_MEMORY == 0
         uint8 section_type_max = SECTION_TYPE_DATA;
+#else
+#if WASM_ENABLE_STRINGREF != 0
+        uint8 section_type_max = SECTION_TYPE_STRINGREF;
 #else
         uint8 section_type_max = SECTION_TYPE_DATACOUNT;
+#endif /* end of WASM_ENABLE_STRINGREF != 0 */
 #endif
         if (section_type <= section_type_max) {
             wasm_section_t *new_section;