[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/44390: ftpd/ftpcmd.y inet6 case has out of range subscripts
>Synopsis: ftpd/ftpcmd.y inet6 case has out of range subscripts
>Arrival-Date: Fri Jan 14 20:00:00 +0000 2011
>Originator: Paul Koning
When building 5.0 from source using GCC 4.5.1, I get some error messages due to
new checks in the compiler. Some have been reported before; this one
libexec/ftpd/ftpcmd.y at line 979 and up loads data into a and up. But "a"
is a cast to struct sockaddr_in6 of variable dest_addr which is struct
Apparently the out of bounds references are not seen as such by older
compilers, they are fooled by the cast. GCC 4.5.1 is not fooled and complains.
Obviously I can hide the error by more casting, but it seems to me that this is
actually a memory overwrite error and that can't be a good thing.
Build ftpd with a sufficiently new compiler
Main Index |
Thread Index |