Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不管怎么编译都不通过,求大牛 #14

Closed
hmuyin opened this issue Jul 5, 2021 · 1 comment
Closed

不管怎么编译都不通过,求大牛 #14

hmuyin opened this issue Jul 5, 2021 · 1 comment

Comments

@hmuyin
Copy link

hmuyin commented Jul 5, 2021

CC build/main/ota_esp/qcloud_iot_ota_esp.o
E:/Espressif/msys32/home/hmuyin/ESP8266_RTOS_SDK/APP/qcloud-iot-esp8266-demo/main/ota_esp/qcloud_iot_ota_esp.c: In function 'enable_ota_task':
E:/Espressif/msys32/home/hmuyin/ESP8266_RTOS_SDK/APP/qcloud-iot-esp8266-demo/main/ota_esp/qcloud_iot_ota_esp.c:513:5: error: 'memset' writing 36 bytes into a region of size 32 overflows the destination [-Werror=stringop-overflow=]
memset(sg_ota_ctx.local_version, 0, MAX_SIZE_OF_FW_VERSION + 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: some warnings being treated as errors
make[1]: *** [/home/hmuyin/ESP8266_RTOS_SDK/make/component_wrapper.mk:292:ota_esp/qcloud_iot_ota_esp.o] 错误 1
make: *** [E:/Espressif/msys32/home/hmuyin/ESP8266_RTOS_SDK/make/project.mk:571:component-main-build] 错误 2

@spikelin
Copy link
Collaborator

把513行那个 memset(sg_ota_ctx.local_version, 0, MAX_SIZE_OF_FW_VERSION + 4); 改为 memset(sg_ota_ctx.local_version, 0, MAX_SIZE_OF_FW_VERSION);
这里可能哪个版本merge时候没同步好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants