Source-Changes archive

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

CVS commit: src/lib



Module Name:    src
Committed By:   mrg
Date:           Thu Aug 10 20:38:00 UTC 2023

Modified Files:
        src/lib/libc/net: gethnamaddr.c
        src/lib/libedit: chartype.c
        src/lib/libkvm: kvm_proc.c

Log Message:
avoid various use-after-free issues.

create a ptrdiff_t offset between the start of an allocation region and
some interesting pointer, so it can be adjusted with this offset after
realloc() returns.

found by GCC 12.


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/lib/libc/net/gethnamaddr.c
cvs rdiff -u -r1.36 -r1.37 src/lib/libedit/chartype.c
cvs rdiff -u -r1.98 -r1.99 src/lib/libkvm/kvm_proc.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