Closed fly1ngpengu1ns closed 1 year ago
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
recheck
收到,这个是沁恒芯片的驱动代码,我跟对方工程师确定一下
在原本的代码中,当循环至j=9时,将访问到buf[10],但是在1063行对buf的定义:uint16_t buf[10];中得知访问buf[10]是一个数组越界访问行为,严重的话将会导致栈溢出漏洞。 而产生这个问题的原因在于,原本的冒泡排序的边界条件书写错误,将原本的错误条件:
更正为正确条件:
从而解决了这个问题