Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-11] src



Module Name:    src
Committed By:   martin
Date:           Mon May 18 16:43:22 UTC 2026

Modified Files:
        src/usr.bin/ruptime [netbsd-11]: ruptime.c
        src/usr.sbin/inetd [netbsd-11]: ratelimit.c

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #289):

        usr.bin/ruptime/ruptime.c: revision 1.16
        usr.sbin/inetd/ratelimit.c: revision 1.3

fix a couple of "allocate too little" issues GCC 14 pointed out.
both ruptime and inetd allocate a less-than-struct-sized space and
assign it to a struct pointer.  neither of them actually use more
than the allocated memory, but this is still dodgy and technically
wrong.  just allocate the right size.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.15.56.1 src/usr.bin/ruptime/ruptime.c
cvs rdiff -u -r1.2 -r1.2.6.1 src/usr.sbin/inetd/ratelimit.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index