alibaba / AliOS-Things

面向IoT领域的、高可伸缩的物联网操作系统,可去官网了解更多信息https://www.aliyun.com/product/aliosthings
Apache License 2.0
4.58k stars 1.14k forks source link

[HUST CSE] Fix the error of space size in "memset" function (there are three of them) #1976

Closed zjgfree closed 1 year ago

zjgfree commented 1 year ago

源代码中出现了三处memeset函数以字节为单位进行初始化时空间大小分配错误的情况(第三个参数) 不修复会由于第三个参数(空间大小)的错误时部分值初始化失败 路径AliOS-Things/components/amp/engine/duktape_engine/addons/wireless/bt_host/bt_host_adapter.c第177行删去了外层sizeof, 路径AliOS-Things/components/amp/engine/quickjs_engine/addons/wireless/bt_host/bt_host_adapter.c第194行删去了外层sizeof, 路径AliOS-Things/components/amp_adapter/platform/aos/peripheral/aos_hal_gpio.c第36行将sizeof(gpioc)修改为sizeof(aos_gpioc_ref_t) 在vscode环境下成功解决原有问题

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.