off by one bounds

Maxim Konovalov maxim at macomnet.ru
Sat Aug 21 01:08:45 PDT 2004


Hi Ted,

On Fri, 20 Aug 2004, 12:36-0700, Ted Unangst wrote:

> errors in freebsd 4.10 found by Coverity's analysis.

[...]
> ip_icmp.c:ip_next_mtu, i == sizeof, dir >= 0

This one is not a bug really.  If i == sizeof then mtutab[i] == 0 and
we return 0 at the line 818.  Or I miss something?

-- 
Maxim Konovalov


More information about the freebsd-hackers mailing list