Date: Tue, 10 Jul 2018 06:50:32 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 229665] src/sys/netpfil/ipfw/ip_fw_sockopt.c:304: possible bad size in malloc ? Message-ID: <bug-229665-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229665 Bug ID: 229665 Summary: src/sys/netpfil/ipfw/ip_fw_sockopt.c:304: possible bad size in malloc ? Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dcb314@hotmail.com src/sys/netpfil/ipfw/ip_fw_sockopt.c:304]: (warning) Size of pointer 'idxma= p' used instead of size of its data. Source code is int *idxmap, *idxmap_back; idxmap =3D malloc(65536 * sizeof(uint32_t *), M_IPFW, M_WAITOK | M_ZERO); idxmap_back =3D malloc(65536 * sizeof(uint32_t *), M_IPFW, M_WAITOK | M_ZERO); maybe better code int *idxmap, *idxmap_back; idxmap =3D malloc(65536 * sizeof(int), M_IPFW, M_WAITOK | M_ZERO); idxmap_back =3D malloc(65536 * sizeof(int), M_IPFW, M_WAITOK | M_ZERO); --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229665-227>