Searched hist:f61a2da6e83942dd9558eb4f97f0ed31cbb5b40e (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/usb/gadget/ |
| H A D | g_dnl.c | f61a2da6e83942dd9558eb4f97f0ed31cbb5b40e Wed Nov 20 03:28:13 UTC 2019 Joseph Chen <chenjh@rock-chips.com> usb: gadget: validate NULL string before strncpy()
The variable "s" is passed as NULL(i.e 0) When g_dnl_set_serialnumber() is called from hdelete_r() originally.
The memory 0~1M is secure for ATF on rockchip arm64 platforms, so the strncpy() accesses 0 address and causes a data-abort.
This issue occurs on deleting env "serial#".
Change-Id: Idbf76d26809ab8b195ff4f8193e2eeac99692289 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|