https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239688
Bug ID: 239688
Summary: [patch] geom: uzip: Use mallocarray to prevent
potential integer overflow
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
Created attachment 206322
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=206322&action=edit
g_uzip_zlib patch
The implementation of z_alloc() in g_uzip_zlib.c uses malloc() to allocate
resources without any check for the size.
This may lead to integer overflow.
It is better to use mallocarray() here to prevent such risk.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"