cppcheck analysis of packit_1.0-2.dsc
- ./src/define_defaults.c:39 [error] - Array 'hwaddr_p[17]' index 17 out of bounds
- ./src/print_icmpv4_hdr.c:60 [error] - Memory leak: s_addr
- ./src/print_icmpv4_hdr.c:61 [error] - Memory leak: d_addr
- ./src/print_injection.c:44 [error] - Buffer access out-of-bounds
- ./src/print_injection.c:47 [error] - Buffer access out-of-bounds
- ./src/print_injection.c:50 [error] - Buffer access out-of-bounds
- ./src/print_injection.c:53 [error] - Buffer access out-of-bounds
- ./src/print_injection.c:56 [error] - Buffer access out-of-bounds
- ./src/print_injection.c:59 [error] - Buffer access out-of-bounds
- ./src/print_ipv4_hdr.c:42 [error] - Memory leak: s_addr
- ./src/print_ipv4_hdr.c:43 [error] - Memory leak: d_addr
- ./src/print_tcp_hdr.c:47 [error] - Buffer access out-of-bounds: flags
- ./src/print_tcp_hdr.c:50 [error] - Buffer access out-of-bounds: flags
- ./src/print_tcp_hdr.c:53 [error] - Buffer access out-of-bounds: flags
- ./src/print_tcp_hdr.c:56 [error] - Buffer access out-of-bounds: flags
- ./src/print_tcp_hdr.c:59 [error] - Buffer access out-of-bounds: flags
- ./src/print_tcp_hdr.c:62 [error] - Buffer access out-of-bounds: flags
- ./src/print_tcp_hdr.c:85 [error] - Memory leak: port_src
- ./src/print_tcp_hdr.c:85 [error] - Memory leak: port_dst
- ./src/print_ts.c:56 [error] - Memory leak: ltm
- ./src/shape_arp_hdr.c:97 [error] - snprintf size is out of bounds
- ./src/shape_arp_hdr.c:142 [error] - snprintf size is out of bounds
- ./src/shape_arp_hdr.c:80 [error] - Memory leak: hw_addr
- ./src/shape_ethernet_hdr.c:59 [error] - snprintf size is out of bounds
- ./src/shape_ethernet_hdr.c:74 [error] - snprintf size is out of bounds
- ./src/shape_ethernet_hdr.c:49 [error] - Memory leak: hw_addr
- ./src/utils.c:95 [error] - Undefined behaviour: ip is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./src/utils.c:117 [error] - Undefined behaviour: eaddr is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./src/utils.c:647 [error] - Undefined behaviour: string is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Mon, 20 Dec 2010 21:17:34 +0000, based on results by cppcheck 1.46