今天的签到题,做完之后力扣报错:heap-buffer-overflow,原因是对地址的非法访问。(找了半天错。。。代码如下: /** * Note: The returned array must be malloced, assume caller calls free(). */ int* intersection(int* nums1, int nums1Size, int* num
力扣上AddressSanitizer: heap-buffer-overflow怎么处理?错误在于,在被调用的函数中用malloc建立一个数组后...