mchome/dogcom

越界

yujincheng08 opened this issue · 1 comments

auth.c:276:21: error: '__builtin_memcpy' writing 102 bytes into a region of size 100 overflows the destination [-Werror=stringop-overflow=]
                     strcpy(err_msg, "[Tips] MAC address does not match, this account can only be used in the specified IP and MAC address.");
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

需要把err_msg的大小调整到至少102。

nice catch