[Bug 264055] null pointer dereference in bhnd_erom_iores_new()
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 264055] null pointer dereference in bhnd_erom_iores_new()"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 264055] null pointer dereference in bhnd_erom_iores_new()"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 264055] bhnd(4): null pointer dereference in bhnd_erom_iores_new()"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 264055] bhnd(4): null pointer dereference in bhnd_erom_iores_new()"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 18 May 2022 02:46:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264055 Bug ID: 264055 Summary: null pointer dereference in bhnd_erom_iores_new() Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: ruc_gongyuanjun@163.com Created attachment 234008 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234008&action=edit a possible patch In bhnd_erom_iores_new(), the failure of malloc can cause a null pointer dereference, fix it with a check. Check the result of bhnd_erom_iores_new when it is called. If malloc fails, bhnd_erom_iores_new returns null and the caller fails. -- You are receiving this mail because: You are the assignee for the bug.